Commit be59728
fix: remove stopImmediatePropagation to allow Portal stack to handle Dialog ESC
Portal's onGlobalKeyDown uses a stack with top-check to prevent Dialog from
closing when Preview is on top. stopImmediatePropagation was blocking this
mechanism entirely, causing Dialog's onClose to never fire on second ESC.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ad02d5d commit be59728
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | 337 | | |
339 | 338 | | |
340 | 339 | | |
| |||
351 | 350 | | |
352 | 351 | | |
353 | 352 | | |
354 | | - | |
| 353 | + | |
355 | 354 | | |
356 | 355 | | |
357 | | - | |
| 356 | + | |
358 | 357 | | |
359 | 358 | | |
360 | 359 | | |
| |||
0 commit comments