diff --git a/packages/edit-widgets/src/components/widget-areas-block-editor-content/index.js b/packages/edit-widgets/src/components/widget-areas-block-editor-content/index.js
index 92f82f5b4325d9..524660dbfd4bbd 100644
--- a/packages/edit-widgets/src/components/widget-areas-block-editor-content/index.js
+++ b/packages/edit-widgets/src/components/widget-areas-block-editor-content/index.js
@@ -5,10 +5,10 @@ import { Popover } from '@wordpress/components';
import {
BlockList,
BlockEditorKeyboardShortcuts,
+ BlockSelectionClearer,
WritingFlow,
ObserveTyping,
} from '@wordpress/block-editor';
-import { useDispatch } from '@wordpress/data';
/**
* Internal dependencies
@@ -17,31 +17,27 @@ import Notices from '../notices';
import KeyboardShortcuts from '../keyboard-shortcuts';
export default function WidgetAreasBlockEditorContent() {
- const { clearSelectedBlock } = useDispatch( 'core/block-editor' );
-
return (
- <>
-
-
-
-
-
-
{
- // Stop propagation of the focus event to avoid the parent
- // widget layout component catching the event and removing the selected area.
- event.stopPropagation();
- event.preventDefault();
- } }
- >
-
-
-
-
-
-
+
+ {
+ // Stop propagation of the focus event to avoid the parent
+ // widget layout component catching the event and removing the selected area.
+ event.stopPropagation();
+ event.preventDefault();
+ } }
+ >
+
+
+
+
+
+
+
+
+
- >
+
);
}
diff --git a/packages/edit-widgets/src/components/widget-areas-block-editor-content/style.scss b/packages/edit-widgets/src/components/widget-areas-block-editor-content/style.scss
new file mode 100644
index 00000000000000..2b1bf51d97db74
--- /dev/null
+++ b/packages/edit-widgets/src/components/widget-areas-block-editor-content/style.scss
@@ -0,0 +1,3 @@
+.edit-widgets-block-editor {
+ position: relative;
+}
diff --git a/packages/edit-widgets/src/style.scss b/packages/edit-widgets/src/style.scss
index 5975995ca91882..bac459384920f9 100644
--- a/packages/edit-widgets/src/style.scss
+++ b/packages/edit-widgets/src/style.scss
@@ -6,6 +6,7 @@
@import "./components/sidebar/style.scss";
@import "./components/notices/style.scss";
@import "./components/layout/style.scss";
+@import "./components/widget-areas-block-editor-content/style.scss";
// In order to use mix-blend-mode, this element needs to have an explicitly set background-color
// We scope it to .wp-toolbar to be wp-admin only, to prevent bleed into other implementations