when open side bar, click in menu item to scroll to an element and them close side bar the page scroll up
here Demo
i guess all
i guess all versions
with this approach i got a different behavior, but master has another behavior
@aghassemi here's another history popstate issue with sidebar.
changing to p1, this bug totally defeats the whole point of page nav links in sidebar all together.
@camelburrito @torch2424 do either of you guys have cycles to fix this bug? (Essentially sidebar scrolls the main page back to top when closed)
This is something that MK attempted to fix (I thought he fixed it). I don't think we will have cycles looking into it.
@mauricionr Looks like links in sidebar have some special logic for handling in-page navigation which requires presence of href="#id" on a tags. If you add href in addition to the smooth-scroll action call, that should fix your issue. (it has the side benefit of properly updating the Url as well). See https://output.jsbin.com/jolebur for a sample.
Let me know if you still have concerns with this issue.
Currently working on improving this in the documentation, to make things more clear.
Ok :smile:
but i must put the href?
Nicee @torch2424 :tada:
may i close or keep open this issue?
thanks @aghassemi
np. closing the issue
Most helpful comment
Currently working on improving this in the documentation, to make things more clear.