diff --git a/packages/block-library/src/navigation-link/link-ui.js b/packages/block-library/src/navigation-link/link-ui.js index a6c709f260b037..47a8cb99ffdb24 100644 --- a/packages/block-library/src/navigation-link/link-ui.js +++ b/packages/block-library/src/navigation-link/link-ui.js @@ -78,7 +78,7 @@ export function getSuggestionsQuery( type, kind ) { } } -function LinkUIBlockInserter( { clientId, onBack, onSelectBlock } ) { +function LinkUIBlockInserter( { clientId, onBack } ) { const { rootBlockClientId } = useSelect( ( select ) => { const { getBlockRootClientId } = select( blockEditorStore ); @@ -140,7 +140,6 @@ function LinkUIBlockInserter( { clientId, onBack, onSelectBlock } ) { prioritizePatterns={ false } selectBlockOnInsert hasSearch={ false } - onSelect={ onSelectBlock } /> ); @@ -203,10 +202,6 @@ function UnforwardedLinkUI( props, ref ) { `link-ui-link-control__description` ); - // Selecting a block should close the popover and also remove the (previously) automatically inserted - // link block so that the newly selected block can be inserted in its place. - const { onClose: onSelectBlock } = props; - return ( ) }