From 4b81c360003b0119abd8094a63e44a48c95bef1c Mon Sep 17 00:00:00 2001 From: melloware Date: Sat, 3 Sep 2022 06:50:52 -0400 Subject: [PATCH] Fix #3233: ConfirmPopup respect dismissable property --- components/lib/confirmpopup/ConfirmPopup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/confirmpopup/ConfirmPopup.js b/components/lib/confirmpopup/ConfirmPopup.js index 1a815a864a..e999366c4d 100644 --- a/components/lib/confirmpopup/ConfirmPopup.js +++ b/components/lib/confirmpopup/ConfirmPopup.js @@ -43,7 +43,7 @@ export const ConfirmPopup = React.memo( overlay: overlayRef, listener: (event, { type, valid }) => { if (valid) { - type === 'outside' ? !isPanelClicked.current && hide() : hide(); + type === 'outside' ? props.dismissable && !isPanelClicked.current && hide() : hide(); } isPanelClicked.current = false;