Skip to content

Commit

Permalink
navigation-link: set page id in the attrs (#18641)
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox authored Jan 21, 2020
1 parent 7d59200 commit c22b77c
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 @@ -174,6 +174,7 @@ function NavigationLinkEdit( {
title: newTitle = '',
url: newURL = '',
opensInNewTab: newOpensInNewTab,
id,
} = {} ) => setAttributes( {
title: escape( newTitle ),
url: encodeURI( newURL ),
Expand All @@ -189,6 +190,7 @@ function NavigationLinkEdit( {
return label;
} )(),
opensInNewTab: newOpensInNewTab,
id,
} ) }
onClose={ () => setIsLinkOpen( false ) }
/>
Expand Down

0 comments on commit c22b77c

Please sign in to comment.