Skip to content

Commit

Permalink
Mobile - Link settings - Check for onClose (#28039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Pacheco authored and guarani committed Jan 7, 2021
1 parent 1eda213 commit 4846058
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/src/mobile/link-settings/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ function LinkSettings( {

function onCloseSettingsSheet() {
onSetAttributes();
onClose();

if ( onClose ) {
onClose();
}
}

function onChangeOpenInNewTab( value ) {
Expand Down

0 comments on commit 4846058

Please sign in to comment.