Commit fc6666b
authored
fix: prevent window listeners from triggering events twice (#10611)
fixes #10271
The prior fix in #10307 wasn't quite right, because JSDom has a difference between window and event.composedPath which sounds like a bug, and a workaround in that PR made it so the test did pass when the bug still occurred. That's also why there isn't a test here, because we can't properly test this using JSDom.1 parent 45e3857 commit fc6666b
File tree
2 files changed
+14
-6
lines changed- .changeset
- packages/svelte/src/internal/client
2 files changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
| 1404 | + | |
1404 | 1405 | | |
1405 | 1406 | | |
1406 | 1407 | | |
| |||
1420 | 1421 | | |
1421 | 1422 | | |
1422 | 1423 | | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
1426 | 1430 | | |
1427 | 1431 | | |
1428 | | - | |
| 1432 | + | |
1429 | 1433 | | |
1430 | 1434 | | |
1431 | 1435 | | |
| |||
1451 | 1455 | | |
1452 | 1456 | | |
1453 | 1457 | | |
1454 | | - | |
1455 | | - | |
| 1458 | + | |
1456 | 1459 | | |
1457 | 1460 | | |
1458 | 1461 | | |
| |||
0 commit comments