Skip to content

Commit

Permalink
re-trigger load events for img elements on commit (facebook#23316)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
2 people authored and zhengjitf committed Apr 15, 2022
1 parent 214987e commit 7717c23
Show file tree
Hide file tree
Showing 2 changed files with 606 additions and 18 deletions.
Loading

0 comments on commit 7717c23

Please sign in to comment.