dillon1000/react

Commit

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]>
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactDOMImageLoad-test.internal.js ModifiedM packages/react-dom/src/client/ReactDOMHostConfig.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…