From 42c373a7b5af9495ec58e4dd31df77a5ceede8d3 Mon Sep 17 00:00:00 2001 From: ddiu8081 Date: Wed, 10 May 2023 03:25:12 +0800 Subject: [PATCH] fix(ui): enable close-on-outside-click in modals --- src/components/ui/Modal.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/ui/Modal.tsx b/src/components/ui/Modal.tsx index dc2d8c9d..6de4862a 100644 --- a/src/components/ui/Modal.tsx +++ b/src/components/ui/Modal.tsx @@ -16,9 +16,6 @@ interface Props { export default (props: Props) => { const [state, send] = useMachine(dialog.machine({ id: createUniqueId(), - // TODO: set it to true will cause the modal closes exceptionally - // https://github.com/chakra-ui/zag/issues/596 - closeOnOutsideClick: false, })) const api = createMemo(() => dialog.connect(state, send, normalizeProps))