-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
BugSomething is broken and not working as intended in the system.Something is broken and not working as intended in the system.
Description
Issue summary
The TrapFocus
component appears to be creating an infinite loop. If you look at the stacktrace below, you can see that Dialog
triggers focusFirstFocusableNode
which triggers a focusin
event. This event triggers handleFocusIn
which calls focusFirstFocusableNode
. The loop keeps going.
This ends up locking the main thread for a significant time.
Expected behavior
After the initial focus, the loop should stop.
Steps to reproduce the problem
This doesn't appear to be happening with all modals. I haven't been able to identify what scenario causes this bug.
devchrisdevonpmack
Metadata
Metadata
Assignees
Labels
BugSomething is broken and not working as intended in the system.Something is broken and not working as intended in the system.