Skip to content

Commit

Permalink
fix 40243
Browse files Browse the repository at this point in the history
  • Loading branch information
ddryo committed Apr 12, 2022
1 parent fb3d84b commit cd27825
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@ function ButtonEdit( props ) {
} ) => {
setAttributes( { url: newURL } );

if ( opensInNewTab !== newOpensInNewTab ) {
if (
'undefined' !== typeof newOpensInNewTab &&
opensInNewTab !== newOpensInNewTab
) {
onToggleOpenInNewTab( newOpensInNewTab );
}
} }
Expand Down

0 comments on commit cd27825

Please sign in to comment.