Repository navigation
Commit 0ff2621
committed
fix(octane): retire hosts in deferRootUnmount, portalSlotSlot, and batchClearItems
deferRootUnmount's commit callback reconnects saved nodes and runs
unmountBlock without stamping them first, so a focusout during cleanup
or removeChild can start a handler on an already-disposed scope.
The portalSlotSlot branch in unmountSlot calls unmountBlock on the portal
block directly; because the portal's DOM lives in a foreign target,
no enclosing deletion's retirement covers it.
batchClearItems' non-parkable path (the fallback when rows cannot park)
disposes items and clears the DOM range without retiring the focused row,
so the synchronous focusout can deliver to a disposed handler.
Add retireEventHostTree / retireHostRange at each site, matching the
pattern already used by deferRootRange, teardownPortalState, and
deferRootOwnedListClear respectively.1 parent bc9ad49 commit 0ff2621
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4107 | 4107 | | |
4108 | 4108 | | |
4109 | 4109 | | |
| 4110 | + | |
| 4111 | + | |
4110 | 4112 | | |
4111 | 4113 | | |
4112 | 4114 | | |
| |||
12367 | 12369 | | |
12368 | 12370 | | |
12369 | 12371 | | |
| 12372 | + | |
| 12373 | + | |
12370 | 12374 | | |
12371 | 12375 | | |
12372 | 12376 | | |
| |||
46516 | 46520 | | |
46517 | 46521 | | |
46518 | 46522 | | |
| 46523 | + | |
| 46524 | + | |
| 46525 | + | |
| 46526 | + | |
| 46527 | + | |
| 46528 | + | |
46519 | 46529 | | |
46520 | 46530 | | |
46521 | 46531 | | |
| |||
46534 | 46544 | | |
46535 | 46545 | | |
46536 | 46546 | | |
46537 | | - | |
46538 | 46547 | | |
46539 | 46548 | | |
46540 | 46549 | | |
| |||
0 commit comments