Skip to content

Commit 346a4e7

Browse files
committed
Focus on URL heading on page load
1 parent d7101bb commit 346a4e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/event/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export function Events(Base) {
2929
}
3030
}
3131

32-
// Focus on the content area after navigation
33-
if (source === 'navigate') {
32+
// Move focus to content
33+
if (query.id || source === 'navigate') {
3434
this.focusContent();
3535
}
3636

0 commit comments

Comments
 (0)