Skip to content

fix: preserve loose-list sidebar links when collapsed - #2787

Merged
sy-records merged 1 commit into
developfrom
fix/sidebar
Aug 15, 2026
Merged

sy-records merged 1 commit into
developfrom
fix/sidebar

Conversation

@sy-records

@sy-records sy-records commented Aug 14, 2026 •

Copy link
Copy Markdown
Member

Summary

If you click “Quick Start” and then click “Quick Start” again, it will disappear.

- [Quick start](quickstart.md)
- [Adding pages](adding-pages.md)
- [Cover page](cover.md)

- Getting started

  - [Custom navbar](custom-navbar.md)

But that's normal.

* [Quick start](quickstart.md)
* [Adding pages](adding-pages.md)
* [Cover page](cover.md)

- Getting started

  - [Custom navbar](custom-navbar.md)

Related issue, if any:

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed

Does this PR introduce a breaking change?

  • Yes
  • No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docsify-preview Ready Ready Preview Aug 14, 2026 9:50am

@paulhibbitts paulhibbitts left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this is another great catch @sy-records ! I created a sandbox using the PR Preview Build and your provided sidebar example:

- [Quick start](quickstart.md)
- [Adding pages](adding-pages.md)
- [Cover page](cover.md)

- Getting started

  - [Custom navbar](custom-navbar.md)

https://codesandbox.io/p/devbox/docsify-v5-collapsible-root-sidebar-groups-forked-82n2w8?workspaceId=ws_C7CBq2TzamwfU438Zxccyc

With the current docsify.js.org build used in the sandbox, sure enough QuickStart disappeared after I opened and closed it, as shown here:

Image

However, as the sandbox confirmed your fix keeps QuickStart if it is opened and then closed. 👍🏼

2026-08-14_06-58-34
@sy-records
sy-records merged commit 92cdd13 into develop Aug 15, 2026
8 checks passed
@sy-records
sy-records deleted the fix/sidebar branch August 15, 2026 14:54
@sy-records sy-records mentioned this pull request Oct 28, 2026

This branch was successfully deployed

1 active deployment
Preview — 9a9cc43a Deployed Aug 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants