mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-13 16:18:51 +08:00
fix(core-dialogs): check for persistent dialog
CB-366
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user