Skip to content

Commit

Permalink
Disable block toolbar compat layer
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jul 9, 2021
1 parent c33ccdb commit 5af0c2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-editor/src/components/block-preview/auto.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* WordPress dependencies
*/
import { Disabled } from '@wordpress/components';
import { useResizeObserver, pure } from '@wordpress/compose';
import { useSelect } from '@wordpress/data';

Expand Down Expand Up @@ -36,7 +37,7 @@ function AutoBlockPreview( { viewportWidth, __experimentalPadding } ) {
return (
<div className="block-editor-block-preview__container">
{ containerResizeListener }
<div
<Disabled
className="block-editor-block-preview__content"
style={ {
transform: `scale(${ scale })`,
Expand All @@ -62,7 +63,7 @@ function AutoBlockPreview( { viewportWidth, __experimentalPadding } ) {
{ contentResizeListener }
<MemoizedBlockList renderAppender={ false } />
</Iframe>
</div>
</Disabled>
</div>
);
}
Expand Down

0 comments on commit 5af0c2b

Please sign in to comment.