From b7a3f1f83bc66eae326ba6488f47a81ab85dd88c Mon Sep 17 00:00:00 2001 From: andrei draganescu Date: Thu, 15 Jul 2021 11:39:05 +0300 Subject: [PATCH] Adds auxiliary class names for editor styles in the widgets editor (#33388) Co-authored-by: Andrei Draganescu Co-authored-by: Robert Anderson --- packages/edit-widgets/src/blocks/widget-area/edit/index.js | 2 +- .../edit-widgets/src/blocks/widget-area/edit/inner-blocks.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/edit-widgets/src/blocks/widget-area/edit/index.js b/packages/edit-widgets/src/blocks/widget-area/edit/index.js index 1957361586e5a6..d9c62a7153e9a6 100644 --- a/packages/edit-widgets/src/blocks/widget-area/edit/index.js +++ b/packages/edit-widgets/src/blocks/widget-area/edit/index.js @@ -78,7 +78,7 @@ export default function WidgetAreaEdit( { type="postType" id={ `widget-area-${ id }` } > - + ) } diff --git a/packages/edit-widgets/src/blocks/widget-area/edit/inner-blocks.js b/packages/edit-widgets/src/blocks/widget-area/edit/inner-blocks.js index 38d17428fac5f2..83800d875e62cd 100644 --- a/packages/edit-widgets/src/blocks/widget-area/edit/inner-blocks.js +++ b/packages/edit-widgets/src/blocks/widget-area/edit/inner-blocks.js @@ -18,7 +18,7 @@ import { useRef } from '@wordpress/element'; */ import useIsDraggingWithin from './use-is-dragging-within'; -export default function WidgetAreaInnerBlocks() { +export default function WidgetAreaInnerBlocks( { id } ) { const [ blocks, onInput, onChange ] = useEntityBlockEditor( 'root', 'postType' @@ -40,6 +40,7 @@ export default function WidgetAreaInnerBlocks() { return (