oneuptime icon indicating copy to clipboard operation
oneuptime copied to clipboard

Trap focus inside modals

Open aphilas opened this issue 2 years ago • 0 comments

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.

aphilas avatar Apr 21 '23 14:04 aphilas