Commit ac660ef
committed
fix(dashboards): Prevent ESC from blocking confirmation modal dismiss
useHotkeys calls preventDefault before the callback, so when the
confirmation modal is open the event gets swallowed before GlobalModal
can handle it. Use skipPreventDefault and call preventDefault only
when we actually close the slideout.1 parent 8dd2884 commit ac660ef
File tree
1 file changed
+3
-1
lines changed- static/app/views/dashboards/widgetBuilder/components
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
244 | 245 | | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
0 commit comments