Skip to content

Commit

Permalink
Fix: Hide list items from content area of content locked blocks (#44676)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored and ockham committed Oct 10, 2022
1 parent c8bc6f5 commit f7b9ef2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit f7b9ef2

Please sign in to comment.