offcanvas scrolls back to trigger element on close
Prerequisites
-
I have searched for duplicate or closed issues -
I have validated any HTML to avoid common problems -
I have read the contributing guidelines
Describe the issue
When closing the offcanvas menu, the trigger element will get the focus due to
this will make the whole page scroll back. If you scrolled (data-bs-scroll=true) or used an anchor, you will "jump back" to top of page.
maybe it may make sense in some situations, but at least there should be an option to disable that behaviour.
Reduced test cases
https://codepen.io/lekoalabe/pen/VwGYgdw
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.0-alpha1