Trap focus inside modals #1962

Open
opened 2026-04-05 16:40:36 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @aphilas on 4/21/2023

Describe the bug

Tabbing through a modal jumps from the last input to the rest of the page, skipping the action buttons.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Dashboard > Incidents
  2. Click on Create Incident
  3. Tab through the inputs
  4. The focus will skip the Close/Next buttons and jump to the rest of the page

Expected behavior

Focus jumps to the "Next" button.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Firefox
  • Version: 111

Additional context

Using the "Enter" button won't work either.

*Originally created by @aphilas on 4/21/2023* **Describe the bug** Tabbing through a modal jumps from the last input to the rest of the page, skipping the action buttons. **To Reproduce** Steps to reproduce the behavior: 1. Go to Dashboard > Incidents 2. Click on Create Incident 3. Tab through the inputs 4. The focus will skip the Close/Next buttons and jump to the rest of the page **Expected behavior** Focus jumps to the "Next" button. **Screenshots** ~~If applicable, add screenshots to help explain your problem.~~ **Desktop (please complete the following information):** - OS: Linux - Browser: Firefox - Version: 111 **Additional context** Using the "Enter" button won't work either.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#1962