diff --git a/frontend/src/components/Modal.jsx b/frontend/src/components/Modal.jsx index 28516053..c962bb7a 100644 --- a/frontend/src/components/Modal.jsx +++ b/frontend/src/components/Modal.jsx @@ -1,5 +1,6 @@ import { Dialog, DialogContent, DialogTitle } from '@/components/ui/dialog'; import { cn } from '@/lib/utils'; +import { dismissGuards } from '@/components/ui/dismissGuards'; // Generic modal built on the Radix Dialog primitive. SCSS owns all geometry // (styles/components/_ui.scss → .sk-modal*). `size` picks a max-width on @@ -12,6 +13,9 @@ import { cn } from '@/lib/utils'; // to the bottom of the scrolling body, and a nested .modal-body adds no extra // padding or scroller. Two-column .form-row stacks in narrow modals. // +// closeOnDismiss={false}: overlay click and Escape no longer close the modal +// (for flows that would lose in-progress state); explicit buttons still do. +// // Form mode: pass `onSubmit` and the body AND footer // are wrapped in one