dillon1000/react
Commit
Browse files [Fiber] `getHoistableRoot()` should account for Document containers (#32321)
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.
Changed paths1 file
First-parent comparisonpackages/react-dom-bindings/src/client/ReactFiberConfigDOM.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…