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 8, 2020
1 parent 14a458a commit 786f6bc
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 @@ -164,11 +164,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 786f6bc

Please sign in to comment.