Skip to content

Commit

Permalink
Fix error (#28212)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and ockham committed Jan 22, 2021
1 parent 696548a commit 3542b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ function Iframe( { contentRef, children, head, ...props }, ref ) {
return false;
}

contentRef.current = contentDocument.body;
setIframeDocument( contentDocument );
setHead( contentDocument, head );
setBodyClassName( contentDocument );
styleSheetsCompat( contentDocument );
bubbleEvents( contentDocument );
setBodyClassName( contentDocument );
contentRef.current = contentDocument.body;

return true;
}
Expand Down

0 comments on commit 3542b8c

Please sign in to comment.