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

Missing scroll to fragments #23

Open
doompadee opened this issue Nov 4, 2023 · 0 comments
Open

Missing scroll to fragments #23

doompadee opened this issue Nov 4, 2023 · 0 comments

Comments

@doompadee
Copy link

I'm currently playing with the /nav entrypoint of micromorph and found an issue regarding fragment links.

When I have a document with the following structure:

<a href="#title">Go to title</a>
...
<h1 id="title">Title</h1>

Clicking the 'Go to title' link does not cause the viewport to scroll to the specified fragment as expected. Instead, if options.scrollToTop is not set to false, it will scroll to the top.

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

No branches or pull requests

1 participant