FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: handle hash navigation to prevent duplicate callbacks by sy-records · Pull Request #2575 · docsifyjs/docsify · GitHub

Repository navigation

fix: handle hash navigation to prevent duplicate callbacks - #2575

Merged
sy-records merged 1 commit into
docsifyjs:developfrom
sy-records:fix/522
Jul 24, 2025
Merged

sy-records merged 1 commit into
docsifyjs:developfrom
sy-records:fix/522

Conversation

Copy link
Copy Markdown
Member

Summary

This PR improves hash navigation handling by correctly setting the navigating flag even when the clicked link points to the current hash.

Related issue, if any:

Close #522

What kind of change does this PR introduce?

Bugfix

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?

No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge

vercel Bot commented Jul 23, 2025 •
edited
Loading

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docsify-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2025 9:18am

Comment thread src/core/router/history/hash.js Outdated

Koooooo-7 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM.
Other class/elements which we don't wanna trigger the action in future, we could add them later.

paulhibbitts self-requested a review July 23, 2025 14:29

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

From a UX perspective I tested the following and the page scrolled to the expected area:

  1. Visit the Themes section on the PR Preview site
  2. Click any section link (Ex: Classes)
  3. Scroll the page
  4. Click the same section link

Great to see this long-standing issue fixed🎉

This branch was successfully deployed

1 active deployment
Preview — 5d95f1f0 Deployed Jul 23, 2025 by vercel[bot]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Always scroll to clicked sidebar content

3 participants


Back | FazBrowse Home | New Git URL