We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43bcedb commit ba4354dCopy full SHA for ba4354d
packages/kit/src/runtime/client/client.js
@@ -1545,7 +1545,7 @@ export function create_client(app, target) {
1545
// history state value without any signal that we can detect.
1546
if (current.url.hash === url.hash) {
1547
event.preventDefault();
1548
- a.scrollIntoView();
+ a.ownerDocument.getElementById(hash)?.scrollIntoView();
1549
return;
1550
}
1551
// set this flag to distinguish between navigations triggered by
0 commit comments