Skip to content

Commit

Permalink
navigation-link: set page id in the attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Jan 14, 2020
1 parent 8f7d582 commit a29c043
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,13 @@ function NavigationLinkEdit( {
title: newTitle = '',
url: newURL = '',
opensInNewTab: newOpensInNewTab,
id,
} = {} ) => setAttributes( {
title: escape( newTitle ),
url: newURL,
label: label || escape( newTitle ),
opensInNewTab: newOpensInNewTab,
id,
} ) }
onClose={ () => setIsLinkOpen( false ) }
/>
Expand Down

0 comments on commit a29c043

Please sign in to comment.