Replies: 1 comment 1 reply
-
As far as I understand scrolling, it's created by the browser when a user or javascript clicks on an anchor element with a URL that has an anchor. event.preventDefault(); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version: 5.2.3
I use
new Collapse(this.element, { toggle: true})
to toggle a collapse programatically. Everytime i do the page scrolls to the collapse. Is there a way to prevent this? I already did some research but didn't find a solution so far.Related docs: https://getbootstrap.com/docs/5.2/components/collapse/#via-javascript
Beta Was this translation helpful? Give feedback.
All reactions