azouaoui-med/pro-sidebar-template

page jumps to top when interacting with the sidebar

wibed opened this issue · 2 comments

wibed commented

when opening the the navbar

either toggling collapsed
or removing collapsed className

the page jumps to top.

reproduce:

scroll a bit
open sidebar
expected:
the page not to jump to top

actual behaviour:
page jumps to top

example: https://codepen.io/azouaoui-med/pen/wpBadb

Hello did you solve this issue

replace # inside the a tag with: javascript:void(0)
And all is fine :-)