Skip to content

Conversation

rileyhgrant
Copy link
Contributor

@rileyhgrant rileyhgrant commented Sep 19, 2025

Resolves #1793

As best I can tell, changes in rendering of the DOM in react 18 broke the scroll to an anchor tag id behavior that let us link to a given section on the data page. Linking to a specific section is used extensively in blog posts, and elsewhere.

This PR adds a tiny useEffect hook to the data page to snoop on the hash and scroll to it, to re-enable the behavior.

@rileyhgrant rileyhgrant force-pushed the reenable-data-page-scrolling branch from 8f1472e to f6dcc53 Compare September 19, 2025 21:02
@rileyhgrant rileyhgrant merged commit 39bc804 into main Sep 24, 2025
5 checks passed
@rileyhgrant rileyhgrant deleted the reenable-data-page-scrolling branch September 24, 2025 19:09
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.

gnomAD API link doesn't navigate to API section
2 participants