Skip to content

Commit ae35e15

Browse files
committed
Revert "fix(ui): enable close-on-outside-click in modals"
This reverts commit 42c373a.
1 parent bc2b7f3 commit ae35e15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/ui/Modal.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ interface Props {
1616
export default (props: Props) => {
1717
const [state, send] = useMachine(dialog.machine({
1818
id: createUniqueId(),
19+
// TODO: set it to true will cause the modal closes exceptionally
20+
// https://github.com/chakra-ui/zag/issues/596
21+
closeOnOutsideClick: false,
1922
}))
2023
const api = createMemo(() => dialog.connect(state, send, normalizeProps))
2124

0 commit comments

Comments
 (0)