We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc2b7f3 commit ae35e15Copy full SHA for ae35e15
src/components/ui/Modal.tsx
@@ -16,6 +16,9 @@ interface Props {
16
export default (props: Props) => {
17
const [state, send] = useMachine(dialog.machine({
18
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,
22
}))
23
const api = createMemo(() => dialog.connect(state, send, normalizeProps))
24
0 commit comments