Skip to content

Commit 42c373a

Browse files
committed
fix(ui): enable close-on-outside-click in modals
1 parent 674383b commit 42c373a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/components/ui/Modal.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ 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,
2219
}))
2320
const api = createMemo(() => dialog.connect(state, send, normalizeProps))
2421

0 commit comments

Comments
 (0)