Skip to content

Commit

Permalink
Navigation: Add link URL to the navigation submenu inspector controls (
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian authored Nov 16, 2022
1 parent 6100ac3 commit 3b6f814
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/block-library/src/navigation-submenu/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,14 @@ export default function NavigationSubmenuEdit( {
</BlockControls>
<InspectorControls>
<PanelBody title={ __( 'Link settings' ) }>
<TextControl
value={ url || '' }
onChange={ ( urlValue ) => {
setAttributes( { url: urlValue } );
} }
label={ __( 'URL' ) }
autoComplete="off"
/>
<TextareaControl
value={ description || '' }
onChange={ ( descriptionValue ) => {
Expand Down

0 comments on commit 3b6f814

Please sign in to comment.