natemoo-re/micromorph

Missing scroll to fragments

doompadee opened this issue · 0 comments

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.