Skip to content

Commit

Permalink
Fix #3233: ConfirmPopup respect dismissable property (#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Sep 3, 2022
1 parent 8bad26b commit be1407d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/confirmpopup/ConfirmPopup.js
Expand Up @@ -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;
Expand Down

0 comments on commit be1407d

Please sign in to comment.