-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
On single page site Sidebar does not highlight item navigated to (Docsify v5 Preview) #2509
Comments
append: Sometimes, it locates correctly but sometime, it locates on the --- update |
I've now created a sandbox to help with testing, which uses the latest Preview build: https://codesandbox.io/p/sandbox/long-waterfall-txknd8 |
Strange, I can not reproduce it now, although I revisit the https://paulhibbitts.github.io/docsify-v4-single-page/#/?id=strikethrough ... |
-- @sy-records could you reproduce it steady? docsify/src/core/event/index.js Line 92 in ceb466c
|
yep, You can visit https://txknd8.csb.app/#/?id=bold which should have |
Bug Report
Steps to reproduce
View single page with Sidebar
Scroll down page, and tap on Header element
Copy resulting URL with id?
Open new Browser tab, paste copied URL
Current behaviour
The first item in the Sidebar remains highlighted
Expected behaviour
The item in the sidebar should be highlighted matching clicked id? on page (as is shown with Docsify v4, https://paulhibbitts.github.io/docsify-v4-single-page)
Other relevant information
Most recent (v5) Preview
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 demo using the most recent Preview:
https://paulhibbitts.github.io/docsify-v5-preview-single-page/#
To view bug, go to site, scroll down page and click on a Header element, copy resulting URL, open new Browser tab and paste the URL Might be related to #2504
Mention the docsify version in which this bug was not present (if any)
The text was updated successfully, but these errors were encountered: