dillon1000/react
Commit
Browse files reassign src from props not the dom element src property (#23395)
The src property on the dom element will return a fully qualified name and this does not match the dom src attribute or the props provided to react. instead of reading from the element and re-assigning the property we assign the property from props which is how it was initially assigned during the render Co-authored-by: Josh Story <[email protected]>
Changed paths2 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactDOMImageLoad-test.internal.js ModifiedM packages/react-dom/src/client/ReactDOMHostConfig.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…