Skip to content

Commit

Permalink
strip markup from link label data in inspector (#46171)
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu authored Dec 5, 2022
1 parent 239e8d4 commit 4b50376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export default function NavigationLinkEdit( {
<InspectorControls>
<PanelBody title={ __( 'Link settings' ) }>
<TextControl
value={ label || '' }
value={ label ? navStripHTML( label ) : '' }
onChange={ ( labelValue ) => {
setAttributes( { label: labelValue } );
} }
Expand Down

0 comments on commit 4b50376

Please sign in to comment.