Closed
Description
Bug Report
Steps to reproduce
- View the site https://hibbitts-design.github.io/docsify-template-v5/#/ on mobile
- Open the sidebar
- Tap on ReadMe to view page sub-topics (as expected)
- Tap on a ReadMe sub-topic to view that sub-topic on page (as expected)
- Open the sidebar
- Tap on Second Page (with no sub-topics), and while the page is navigated to the Sidebar remains open (not expected, as shown below)
Here is an additional Docsify v5 rc-1 example (tap on Topic One and Topic two when on mobile):
https://hibbitts-design.github.io/preview-docsify-open-publishing-starter-kit-v2-docsify-v5
And the issue also is evident when mergeNavbar
is used (tap on Sidebar to view merged Navbar items when on mobile):
https://hibbitts-design.github.io/preview-docsify-open-course-starter-kit-v2-docsify-v5/
Current behaviour
- View Docsify v5 site
- Open the sidebar
- Tap on page with sub-topics, page is shown with sidebar open and sub-topics are then visible
- Tap on a sub-topic and that sub-topic is navigated to and sidebar is closed
- Open the sidebar
- Tap on a page with no sub-topics, and while the page is shown to Sidebar remains open
Expected behaviour
- View Docsify v5 site
- Open the sidebar
- Tap on ReadMe to show page and view page sub-topics (sidebar remains open)
- Tap on a ReadMe sub-topic to view that sub-top on page
- Open the sidebar
- Tap on Second Page (with no sub-topics) the page is displayed and the sidebar should close
Other relevant information
- Docsify version:
Docsify v5 rc-1
-
Bug still occurs when all/other plugins are disabled?
-
Docsify plugins (if the bug happens when plugins enabled, please try to isolate the issue):
Please create a reproducible sandbox
Here is a sample on Codebox:
https://codesandbox.io/p/sandbox/docsify-v5-sidebar-nav-ljxvyd
Mention the docsify version in which this bug was not present (if any)
Please let me know if any additional info/testing is helpful, thank you!