mdbootstrap / TW-Elements

𝙃𝙪𝙜𝙚 collection of Tailwind MIT licensed (free) components, sections and templates 😎
https://tw-elements.com
MIT License
12.77k stars 1.62k forks source link

Scrollspy missaligns on reload via anchor #2290

Open SergejGleithmann opened 5 months ago

SergejGleithmann commented 5 months ago

Landing on the page with an anchor is now fixed. However reloading the page after having scolled the bar still creates the offset. You can replicate this by going to the scrollspy scroll to the bottom within the window with the scrollspy and then reload the page. The scroll state will keep the same (e.g. remain at the bottom) but the scrollspy will reset to top position.

Does one create a new issue for this or could we reopen this one if this is an issue worth investigating? (I am new to this.)

Originally posted by @SergejGleithmann in https://github.com/mdbootstrap/TW-Elements/issues/1536#issuecomment-1697534962

iprzybysz commented 5 months ago

Hi @SergejGleithmann, thanks for reporting this bug. I've added this to our repository.