From 11376a9c4b07cf1eca7dbe2b6e016d4c26abe868 Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:41:58 +1100 Subject: [PATCH] Update naming --- packages/block-editor/src/components/inner-blocks/index.js | 4 ++-- packages/edit-post/src/components/visual-editor/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/inner-blocks/index.js b/packages/block-editor/src/components/inner-blocks/index.js index 34cc312a11d5f..d637a16f36360 100644 --- a/packages/block-editor/src/components/inner-blocks/index.js +++ b/packages/block-editor/src/components/inner-blocks/index.js @@ -172,7 +172,7 @@ export function useInnerBlocksProps( props = {}, options = {} ) { const { __unstableDisableLayoutClassNames, __unstableDisableDropZone, - __unstableContentRef, + dropZoneElement, } = options; const { clientId, @@ -214,7 +214,7 @@ export function useInnerBlocksProps( props = {}, options = {} ) { ); const blockDropZoneRef = useBlockDropZone( { - dropZoneElement: __unstableContentRef?.current, + dropZoneElement, rootClientId: clientId, } ); diff --git a/packages/edit-post/src/components/visual-editor/index.js b/packages/edit-post/src/components/visual-editor/index.js index b6896ffc460f9..0e4e3ea530d13 100644 --- a/packages/edit-post/src/components/visual-editor/index.js +++ b/packages/edit-post/src/components/visual-editor/index.js @@ -411,7 +411,7 @@ export default function VisualEditor( { styles } ) { : `${ blockListLayoutClass } wp-block-post-content` // Ensure root level blocks receive default/flow blockGap styling rules. } layout={ blockListLayout } - __unstableContentRef={ ref } + dropZoneElement={ ref?.current } />