dillon1000/react
Commit
Browse files Fix cloneElement using string ref w no owner (#28797)
Fix for an issue introduced in #28473 where cloneElement() with a string ref fails due to lack of an owner. We should use the current owner in this case. --------- Co-authored-by: Rick Hanlon <[email protected]>
Changed paths2 files
First-parent comparisonpackages/react/src/__tests__/ReactElementClone-test.js ModifiedM packages/react/src/jsx/ReactJSXElement.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…