Skip to content

fix: keep current docs topic open on navigation - #537

Open
michaelpearce90 wants to merge 1 commit into
payloadcms:mainfrom
michaelpearce90:fix/docs-navigation-current-topic
Open

michaelpearce90 wants to merge 1 commit into
payloadcms:mainfrom
michaelpearce90:fix/docs-navigation-current-topic

Conversation

@michaelpearce90

Copy link
Copy Markdown

The docs navigation restores the saved open-topic preference when currentTopic changes. If a page is opened directly or reached externally and its topic is not in that saved preference, the active topic can remain collapsed.

Update the navigation state so the current page's topic is opened and persisted when navigation changes, while preserving the existing zero-or-one-open-topic behaviour.

Refs #477

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant