abouolia / sticky-sidebar

😎 Pure JavaScript tool for making smart and high performance sticky sidebar.
https://abouolia.github.io/sticky-sidebar/
MIT License
2.23k stars 487 forks source link

Anchor links not working #123

Open tronish1189 opened 3 years ago

tronish1189 commented 3 years ago

Hey there,

First off, love this plugin! I spent hours trying to build this functionality myself for a project but stumbled on this and I was so relieved.

That said, I'm having an issue where the sticky sidebar seems to be breaking some anchor tags on page load.

Project URL here: https://newamericanfestival.com/entrepreneurs/location/

For instance, when clicking one of the Shop Locations in the sidebar (e.g. Pacific) the page reloads with the anchor tag appended to the URL. However, the page doesn't scroll to that position. Turning off the plugin, it works as expected.

I'm gonna dive in to figure out why this is happening, but I thought I'd raise this issue in case others had a quick answer.

Thanks!