### Prerequisites - [x] I have [searched](https://github.com/twbs/bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue) for duplicate or closed issues - [x] I have [validated](https://html5.validator.nu/) any HTML to avoid common problems - [x] I have read the [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md) ### Describe the issue While navigating using keyboard, there is an extra focus stop on a hidden element for all modals. Then focus is going to close button on the top. ### Reduced test cases https://getbootstrap.com/docs/4.6/components/modal/ ### What operating system(s) are you seeing the problem on? Windows ### What browser(s) are you seeing the problem on? Microsoft Edge ### What version of Bootstrap are you using? Version 138.0.3351.83 (Official build) (64-bit)