bootstrap
bootstrap copied to clipboard
Scrollspy: focus shift bug
Prerequisites
- [X] I have searched for duplicate or closed issues
- [X] I have validated any HTML to avoid common problems
- [X] I have read the contributing guidelines
Describe the issue
After interacting with an anchor, the focus doesn't move to the related contents in the page
Reduced test cases
In the latest Bootstrap release the bug acts ad described above. It's possible to check it in the documentation page: https://getbootstrap.com/docs/5.3/components/scrollspy/#nested-nav
In the release 5.0 the bug didn't exist and the focus correctly shifted on the relative h4/h5: https://getbootstrap.com/docs/5.0/components/scrollspy/#example-with-nested-nav
What operating system(s) are you seeing the problem on?
Windows, macOS
What browser(s) are you seeing the problem on?
Chrome, Safari, Firefox, Microsoft Edge
What version of Bootstrap are you using?
v5.3.2
When interacting with a menu item and then rebooting, should it point to a specific menu item?