Skip to content

Commit ba4354d

Browse files
committed
Fix bug
1 parent 43bcedb commit ba4354d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/src/runtime/client/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ export function create_client(app, target) {
15451545
// history state value without any signal that we can detect.
15461546
if (current.url.hash === url.hash) {
15471547
event.preventDefault();
1548-
a.scrollIntoView();
1548+
a.ownerDocument.getElementById(hash)?.scrollIntoView();
15491549
return;
15501550
}
15511551
// set this flag to distinguish between navigations triggered by

0 commit comments

Comments
 (0)