-
-
Notifications
You must be signed in to change notification settings - Fork 260
theme-default: Deprivation of focus when loading the page. #367
Copy link
Copy link
Open
Labels
Description
I notice that creating https://stackblitz.com/edit/honkit-template?file=README.md
It is a bit cumbersome to lose focus on the editor when changing documents.
Probably, following step got the focus.
honkit/packages/@honkit/theme-default/src/js/theme/navigation.js
Lines 375 to 379 in 3d9392b
| if ($pageWrapper && $pageWrapper[0]) { | |
| // use Native focus | |
| // https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus | |
| $pageWrapper[0].focus({ preventScroll: true }); | |
| } |
Originally posted by @azu in #366 (comment)
Reactions are currently unavailable