diff --git a/packages/block-library/src/navigation-menu-item/edit.js b/packages/block-library/src/navigation-menu-item/edit.js index 3949df2e27af0..1acf5f05e84c1 100644 --- a/packages/block-library/src/navigation-menu-item/edit.js +++ b/packages/block-library/src/navigation-menu-item/edit.js @@ -25,7 +25,7 @@ import { InnerBlocks, InspectorControls, PlainText, - URLPopover, + LinkControl, } from '@wordpress/block-editor'; import { Fragment, @@ -99,29 +99,10 @@ function NavigationMenuItemEdit( { /> { isLinkOpen && <> - - { ( ! url || isEditingLink ) && - event.stopPropagation() } - onKeyDown={ onKeyDown } - onSubmit={ ( event ) => event.preventDefault() } - autocompleteRef={ autocompleteRef } - /> - } - { ( url && ! isEditingLink ) && - event.stopPropagation() } - url={ url } - /> - } - - + onKeyPress={ ( event ) => { event.stopPropagation() } } + /> }