From f7b9ef21e90e4053b56eb6c53a15f774d0983c91 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Wed, 5 Oct 2022 10:20:23 +0100 Subject: [PATCH] Fix: Hide list items from content area of content locked blocks (#44676) --- packages/block-editor/src/components/block-inspector/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-editor/src/components/block-inspector/index.js b/packages/block-editor/src/components/block-inspector/index.js index 3accd8ee6babd3..178fffc611a52d 100644 --- a/packages/block-editor/src/components/block-inspector/index.js +++ b/packages/block-editor/src/components/block-inspector/index.js @@ -40,6 +40,7 @@ function useContentBlocks( blockTypes, block ) { const contenBlocksObjectAux = useMemo( () => { return blockTypes.reduce( ( result, blockType ) => { if ( + blockType.name !== 'core/list-item' && Object.entries( blockType.attributes ).some( ( [ , { __experimentalRole } ] ) => __experimentalRole === 'content'