From a20d66a6b5f12c694b957bf21a91f90fbf585430 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 10 Aug 2025 17:37:48 +0300 Subject: [PATCH] fix(react/dialogs): some dialogs are not displayed on top --- apps/client/src/widgets/dialogs/confirm.tsx | 1 + apps/client/src/widgets/dialogs/info.tsx | 1 + apps/client/src/widgets/dialogs/note_type_chooser.tsx | 1 + apps/client/src/widgets/dialogs/prompt.tsx | 1 + apps/client/src/widgets/react/Modal.tsx | 8 ++++++-- 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/dialogs/confirm.tsx b/apps/client/src/widgets/dialogs/confirm.tsx index 28c9fcc4a..e7ced3131 100644 --- a/apps/client/src/widgets/dialogs/confirm.tsx +++ b/apps/client/src/widgets/dialogs/confirm.tsx @@ -54,6 +54,7 @@ function ConfirmDialogComponent() { }} /> } show={shown} + stackable > {!opts?.message || typeof opts?.message === "string" ?
{(opts?.message as string) ?? ""}
diff --git a/apps/client/src/widgets/dialogs/info.tsx b/apps/client/src/widgets/dialogs/info.tsx index 5fcb4aa49..9eaf81b50 100644 --- a/apps/client/src/widgets/dialogs/info.tsx +++ b/apps/client/src/widgets/dialogs/info.tsx @@ -32,6 +32,7 @@ function ShowInfoDialogComponent() { onClick={() => setShown(false)} />} show={shown} + stackable > ); diff --git a/apps/client/src/widgets/dialogs/note_type_chooser.tsx b/apps/client/src/widgets/dialogs/note_type_chooser.tsx index f2def35b1..f7a535fe9 100644 --- a/apps/client/src/widgets/dialogs/note_type_chooser.tsx +++ b/apps/client/src/widgets/dialogs/note_type_chooser.tsx @@ -81,6 +81,7 @@ function NoteTypeChooserDialogComponent() { setShown(false); }} show={shown} + stackable > } show={shown} + stackable > (null); const modalInstanceRef = useRef(); const formRef = _formRef ?? useRef(null); @@ -94,7 +98,7 @@ export default function Modal({ children, className, size, title, header, footer return; } if (show) { - openDialog(parentWidget.$widget).then(($widget) => { + openDialog(parentWidget.$widget, !stackable).then(($widget) => { modalInstanceRef.current = BootstrapModal.getOrCreateInstance($widget[0]); }) } else {