Commit 086fa8e
authored
re-trigger load events for img elements on commit (#23316)
early load events will be missed by onLoad handlers if they trigger before the tree is committed
to avoid this we reset the src property on the img element to cause the browser to re-load
the img.
Co-authored-by: Josh Story <story@hey.com>1 parent a232744 commit 086fa8e
File tree
2 files changed
+606
-18
lines changed- packages/react-dom/src
- __tests__
- client
2 files changed
+606
-18
lines changed
0 commit comments