Description
Collapsing a root sidebar group with a text-only title hides the title itself, not just its nested links - leaving no way to re-expand it without reloading the page.
Expected behavior
Collapsing the group should hide only its nested list. The group's own title should stay visible and clickable so it can be expanded again.
Actual behavior
Clicking a text-only group title to collapse it hides the group's title along with its nested links. Since the title itself disappears, there's no way to click it again to re-expand - the whole group is effectively gone until the page reloads.
Steps to reproduce
- Enable the new sidebar-groups feature and use a
_sidebar.md where a root group's heading is plain text with no link (not a heading that's itself a page link):
- Topic
- [Page One](page-one.md)
- [Page Two](page-two.md)
- In
index.html:
window.$docsify = {
loadSidebar: true,
collapsibleSidebarGroups: true,
};
- Click "Topic" in the sidebar to collapse it
Environment
Please let me know if any more info is helpful, thanks Paul.
Additional Information
Description
Collapsing a root sidebar group with a text-only title hides the title itself, not just its nested links - leaving no way to re-expand it without reloading the page.
Expected behavior
Collapsing the group should hide only its nested list. The group's own title should stay visible and clickable so it can be expanded again.
Actual behavior
Clicking a text-only group title to collapse it hides the group's title along with its nested links. Since the title itself disappears, there's no way to click it again to re-expand - the whole group is effectively gone until the page reloads.
Steps to reproduce
_sidebar.mdwhere a root group's heading is plain text with no link (not a heading that's itself a page link):index.html:Environment
Please let me know if any more info is helpful, thanks Paul.
Additional Information