Skip to content

Commit

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

Expand Down

0 comments on commit 42c373a

Please sign in to comment.