Skip to content

Commit f12df93

Browse files
committed
Block Editor: Remove block selection clearer handling from iframe
1 parent 80739d1 commit f12df93

File tree

1 file changed

+0
-5
lines changed
  • packages/block-editor/src/components/iframe

1 file changed

+0
-5
lines changed

packages/block-editor/src/components/iframe/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { useSelect } from '@wordpress/data';
2121
/**
2222
* Internal dependencies
2323
*/
24-
import { useBlockSelectionClearer } from '../block-selection-clearer';
2524
import { useWritingFlow } from '../writing-flow';
2625
import { getCompatibilityStyles } from './get-compatibility-styles';
2726
import { useScaleCanvas } from './use-scale-canvas';
@@ -119,7 +118,6 @@ function Iframe( {
119118
/** @type {[Document, import('react').Dispatch<Document>]} */
120119
const [ iframeDocument, setIframeDocument ] = useState();
121120
const [ bodyClasses, setBodyClasses ] = useState( [] );
122-
const clearerRef = useBlockSelectionClearer();
123121
const [ before, writingFlowRef, after ] = useWritingFlow();
124122

125123
const setRef = useRefEffect( ( node ) => {
@@ -176,8 +174,6 @@ function Iframe( {
176174

177175
documentElement.classList.add( 'block-editor-iframe__html' );
178176

179-
clearerRef( documentElement );
180-
181177
contentDocument.dir = ownerDocument.dir;
182178

183179
for ( const compatStyle of getCompatibilityStyles() ) {
@@ -243,7 +239,6 @@ function Iframe( {
243239
const bodyRef = useMergeRefs( [
244240
useBubbleEvents( iframeDocument ),
245241
contentRef,
246-
clearerRef,
247242
writingFlowRef,
248243
disabledRef,
249244
] );

0 commit comments

Comments
 (0)