fix(core-dialogs): check for persistent dialog

CB-366
This commit is contained in:
Naumov Alexey
2020-10-05 17:55:05 +03:00
parent 1cb6b9ea8b
commit d08a32f961
@@ -83,7 +83,7 @@ function NestedDialog({
const DialogComponent = dialog.component;
const backdropClickHandler = (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
if (e.currentTarget.isEqualNode(e.target as HTMLElement)) {
if (!dialog.options?.persistent && e.currentTarget.isEqualNode(e.target as HTMLElement)) {
rejectDialog(dialog);
}
};