Skip to content
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

[Bug]: URI Text Fragments do not work with "Deep Dive" text blocks #7686

Open
jar-presta-onepoint opened this issue Mar 19, 2025 · 1 comment

Comments

@jar-presta-onepoint
Copy link

jar-presta-onepoint commented Mar 19, 2025

Summary

Clicking a doc link that includes a Text Fragment does not scroll nor highlight the relevant text, if that text happens to be inside a "Deep Dive" section.

Page

https://react.dev/reference/react/useCallback#:~:text=Caching%20a%20function%20with,in%20other%20cases

Details

When attempting to quote a part of the doc that is under a "Deep Dive" section, with a URI text fragment: clicking the link will open the documentation page in the browser, but without scrolling to the relevant block nor highlighting the quoted part of the documentation.

However, there are two cases the highlighting works. Both of those require the page to already be loaded, the fragment is added to the uri of the page:

  • If the section is not opened beforehand: the browser still does not scrolls to the section nor open it, but the text is correctly highlighted.
  • If the section is opened beforehand: the browser scrolls to the section and highlights the text as expected

Here's a video capture of the problem:

Enregistrement.2025-03-19.113608.mp4
@jar-presta-onepoint jar-presta-onepoint changed the title [Bug]: URI Text Fragments do not work with "Deep Dive" text blocs [Bug]: URI Text Fragments do not work with "Deep Dive" text blocks Mar 19, 2025
@jar-presta-onepoint
Copy link
Author

It actually works on Google Chrome, but not on Firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant