Commit 7b7b1bd
committed
fix: register Show Panel click handler on window, not document
driver.js registers capture-phase click handlers on document that call
stopImmediatePropagation() for all clicks inside the popover wrapper.
By registering our handler on window instead of document, it fires
before any document-level handlers in the capture phase (window →
document → ... → target), guaranteeing we intercept the click first.
Made-with: Cursor1 parent 08e2d77 commit 7b7b1bd
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
319 | | - | |
| 317 | + | |
| 318 | + | |
320 | 319 | | |
321 | 320 | | |
322 | 321 | | |
| |||
333 | 332 | | |
334 | 333 | | |
335 | 334 | | |
336 | | - | |
337 | | - | |
| 335 | + | |
| 336 | + | |
338 | 337 | | |
339 | 338 | | |
340 | 339 | | |
| |||
0 commit comments