Skip to content

Commit

Permalink
re-trigger load events for img elements on commit (#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
gnoff and gnoff authored Feb 28, 2022
1 parent a232744 commit 086fa8e
Show file tree
Hide file tree
Showing 2 changed files with 606 additions and 18 deletions.
Loading

0 comments on commit 086fa8e

Please sign in to comment.