diff --git a/packages/block-editor/src/components/iframe/use-scale-canvas.js b/packages/block-editor/src/components/iframe/use-scale-canvas.js index 7bde3fbe9ee898..c036e12cf49f38 100644 --- a/packages/block-editor/src/components/iframe/use-scale-canvas.js +++ b/packages/block-editor/src/components/iframe/use-scale-canvas.js @@ -409,6 +409,10 @@ export function useScaleCanvas( { } } } + + return () => { + iframeDocument.documentElement.classList.remove( 'is-zoomed-out' ); + }; }, [ startZoomOutAnimation, finishZoomOutAnimation,