Product Block Editor: clicking outside of the attribute modal triggers an error (#50139)
* Fix clicking outside of the attribute modal triggers an error * Add changelog file
This commit is contained in:
parent
045919d107
commit
75d55a4a66
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Fix clicking outside of the attribute modal triggers an error
|
|
@ -363,7 +363,7 @@ export const NewAttributeModal: React.FC< NewAttributeModalProps > = ( {
|
|||
| React.MouseEvent< Element >
|
||||
| React.FocusEvent< Element >
|
||||
) => {
|
||||
if ( ! event.isPropagationStopped() ) {
|
||||
if ( ! event?.isPropagationStopped() ) {
|
||||
onCancel();
|
||||
}
|
||||
} }
|
||||
|
|
Loading…
Reference in New Issue