Commit b48e739
authored
[Fiber]
While modern DOM implementations all support getRootNode if you are
running React in a runtime which does not the fallback logic which uses
`.ownerDocument` works everywhere except when the container is a
Document itself. This change corrects this by returning the container
intsance if it is a Document type.getHoistableRoot() should account for Document containers (facebook#32321)1 parent ff62833 commit b48e739
File tree
1 file changed
+6
-3
lines changed- packages/react-dom-bindings/src/client
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2523 | 2523 | | |
2524 | 2524 | | |
2525 | 2525 | | |
2526 | | - | |
| 2526 | + | |
2527 | 2527 | | |
2528 | | - | |
2529 | | - | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
2530 | 2533 | | |
2531 | 2534 | | |
2532 | 2535 | | |
| |||
0 commit comments