Commit 3684860
committed
fix: stop propagation of handled keyboard events
Prevent parent modals (e.g. Radix UI, MUI) from also acting on Escape
or arrow keys that the lightbox has already handled — without this,
pressing Escape inside a nested lightbox would close both the lightbox
and the surrounding dialog.1 parent ab1b563 commit 3684860
1 file changed
Lines changed: 5 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
0 commit comments