Skip to content

Commit

Permalink
Unset node._load after unmounting
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Aug 8, 2023
1 parent f338335 commit 1e4d8dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ function Iframe( {
node.addEventListener( 'load', onLoad );

return () => {
delete node._load;
node.removeEventListener( 'load', onLoad );
iFrameDocument?.removeEventListener(
'dragover',
Expand Down

0 comments on commit 1e4d8dc

Please sign in to comment.