Skip to content

Commit

Permalink
Revert "fix(ui): enable close-on-outside-click in modals"
Browse files Browse the repository at this point in the history
This reverts commit 42c373a.
  • Loading branch information
ddiu8081 committed May 9, 2023
1 parent bc2b7f3 commit ae35e15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ui/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ 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))

Expand Down

0 comments on commit ae35e15

Please sign in to comment.