Skip to content

Commit

Permalink
Navigation Link: to help create better placeholders only unlink id an…
Browse files Browse the repository at this point in the history
…d url
  • Loading branch information
gwwar committed Sep 27, 2021
1 parent 284ab48 commit 61519ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,10 @@ export default function NavigationLinkEdit( {
* Removes the current link if set.
*/
function removeLink() {
// Reset all attributes that comprise the link.
// Reset the specific url and id
setAttributes( {
url: '',
label: '',
id: '',
kind: '',
type: '',
} );

// Close the link editing UI.
Expand Down

0 comments on commit 61519ec

Please sign in to comment.