Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completing a tab cycle inside a bootstrap modal will cause the page to scroll #39862

Open
3 tasks done
aashish-aenow opened this issue Apr 3, 2024 · 0 comments · May be fixed by #39927
Open
3 tasks done

Completing a tab cycle inside a bootstrap modal will cause the page to scroll #39862

aashish-aenow opened this issue Apr 3, 2024 · 0 comments · May be fixed by #39927
Labels

Comments

@aashish-aenow
Copy link

Prerequisites

Describe the issue

When you tab through an open modal, one complete cycle so that the focus goes from the last element on the modal back to the X [close] button, it causes the page to scroll where ever the modal is in the DOM order. This behavior is present in the current bootstrap site as well.

Steps to Reproduce

  1. Add a modal on your page
  2. Toggle the modal and tab through the modal one full cycle until you focus back on the X [close] button.
  3. Move the modal to a different part of the page DOM and repeat step 1 and 2

Reduced test cases

https://getbootstrap.com/docs/5.3/components/modal/#live-demo
Scroll slightly so the "Launch Modal" button is slightly off screen but still clickable or scroll up so the button is almost at the bottom of the page and toggle the modal and tab through the modal

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome, Firefox, Microsoft Edge

What version of Bootstrap are you using?

v5.3.3

@mdo mdo added the js label Apr 15, 2024
rickygarim added a commit to rickygarim/bootstrap that referenced this issue Apr 27, 2024
@rickygarim rickygarim linked a pull request Apr 27, 2024 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To analyze
Development

Successfully merging a pull request may close this issue.

3 participants