Skip to content

Commit

Permalink
navigation-menu-item: handle LinkControl onKeyDown
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Oct 24, 2019
1 parent b45235e commit 4c4a2b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/navigation-menu-item/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,11 @@ function NavigationMenuItemEdit( {
onClick={ () => setIsLinkOpen( ! isLinkOpen ) }
/>
{ isLinkOpen &&
<>
<LinkControl
className="wp-block-navigation-menu-item__inline-link-input"
onKeyDown={ onKeyDown }
onKeyPress={ ( event ) => { event.stopPropagation() } }
/>
</>
}
</Toolbar>
</BlockControls>
Expand Down

0 comments on commit 4c4a2b5

Please sign in to comment.