You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Navigation Back to top button doesn't work with instant loading enabled. The button appears normally, can be pressed normally (hover and pressing is correctly colored), but pressing it doesn't navigate you to the top of the page, the position on the page stays the same. Both Firefox and Chrome-based browsers (I have checked Brave on Linux and Chrome on Android) are affected.
I have additionally confirmed that there is no difference between pressing Back to top button on the initially loaded page and the first page loaded using instant loading (navigated using internal links). The position on the page stays the same in both cases.
This happens since version 9.1.1 and it might possibly be related to fixing #5023 via #5032. Version 9.1.0 works fine.
Fixed in 9752ad2. So, the back-to-top button implementation was kind of meh, so I rewrote it to an actual button instead of a link that sets the scroll position imperatively, since it's only shown when JavaScript is available anyway.
Context
No response
Bug description
Navigation
Back to top
button doesn't work with instant loading enabled. The button appears normally, can be pressed normally (hover and pressing is correctly colored), but pressing it doesn't navigate you to the top of the page, the position on the page stays the same. Both Firefox and Chrome-based browsers (I have checked Brave on Linux and Chrome on Android) are affected.I have additionally confirmed that there is no difference between pressing
Back to top
button on the initially loaded page and the first page loaded using instant loading (navigated using internal links). The position on the page stays the same in both cases.This happens since version 9.1.1 and it might possibly be related to fixing #5023 via #5032. Version 9.1.0 works fine.
Related links
Reproduction
example.zip
Steps to reproduce
mkdocs serve
http://127.0.0.1:8000/
in browserBack to top
button appears, but you are not at the topBack to top
buttonBrowser
No response
Before submitting
The text was updated successfully, but these errors were encountered: