diff --git a/packages/block-library/src/navigation/edit.js b/packages/block-library/src/navigation/edit.js index 9edc6046f9deea..034e0ba4255d03 100644 --- a/packages/block-library/src/navigation/edit.js +++ b/packages/block-library/src/navigation/edit.js @@ -72,29 +72,24 @@ function Navigation( { clientId ); - const innerBlocksProps = useInnerBlocksProps( - { - className: 'wp-block-navigation__container', - }, - { - allowedBlocks: ALLOWED_BLOCKS, - orientation: attributes.orientation || 'horizontal', - renderAppender: - ( isImmediateParentOfSelectedBlock && - ! selectedBlockHasDescendants ) || - isSelected - ? InnerBlocks.DefaultAppender - : false, - __experimentalAppenderTagName: 'li', - __experimentalCaptureToolbars: true, - // Template lock set to false here so that the Nav - // Block on the experimental menus screen does not - // inherit templateLock={ 'all' }. - templateLock: false, - __experimentalLayout: LAYOUT, - placeholder: , - } - ); + const innerBlocksProps = useInnerBlocksProps( blockProps, { + allowedBlocks: ALLOWED_BLOCKS, + orientation: attributes.orientation || 'horizontal', + renderAppender: + ( isImmediateParentOfSelectedBlock && + ! selectedBlockHasDescendants ) || + isSelected + ? InnerBlocks.DefaultAppender + : false, + __experimentalAppenderTagName: 'li', + __experimentalCaptureToolbars: true, + // Template lock set to false here so that the Nav + // Block on the experimental menus screen does not + // inherit templateLock={ 'all' }. + templateLock: false, + __experimentalLayout: LAYOUT, + placeholder: , + } ); if ( isPlaceholderShown ) { return ( @@ -145,9 +140,7 @@ function Navigation( { ) } - +