-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidebar (Menu) behaviour issue #736
Comments
That's indeed a bug related to the way some browsers handle form field history, as the sidebar is implemented using the checkbox hack so it works without JavaScript. A possible fix would be to unset the field upon page load no matter if it is set or not. However, that will only work if JavaScript is available and there might be a slight flash (page loads, menu is open, menu closes). |
Thanks for the info. Is it possible to include a configuration flag to allow "unset" the field? |
Theoretically yes, but it's probably better if I included the JavaScript-based fix in the code base anyway. |
|
Fix released as part of 2.7.1 |
Just FYI, according to W3C, Attribute |
Thanks for the FYI - you're absolutely correct. Is there some other option with the same effect? The bug is quite annoying so unless there's a workaround I think it's the best solution. |
Problem in Sidebar (Menu) show/hide with Android device
When browse mkdocs-material powered sites in Android device, menu will be shown when Back button is pressed.
Expected behavior
It is expected previous page should be shown without menu(sidebar).
Actual behavior
Menu/sidebar show up
Steps to reproduce the bug
If we check Google Matrial, menu won't be displayed if Back button is pressed.
System information
The text was updated successfully, but these errors were encountered: