Skip to content

Commit

Permalink
fix: fix close Modal incorrectly (#252)
Browse files Browse the repository at this point in the history
Co-authored-by: lixin <lixin@forchange.tech>
  • Loading branch information
3kinglee and lixin authored Apr 19, 2023
1 parent aeb9b95 commit 6615fa8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ export default function Dialog({
}

return (
<div
className="fixed inset-0 z-40 flex items-center justify-center overflow-y-auto overflow-x-hidden bg-black/70 p-3 font-mono text-white outline-none transition-all"
onClick={close}
>
<div className="fixed inset-0 z-40 flex items-center justify-center overflow-y-auto overflow-x-hidden bg-black/70 p-3 font-mono text-white outline-none transition-all">
<div
className="absolute bottom-0 left-0 right-0 top-0 "
onClick={close}
/>
<div className="relative mx-auto my-6 w-auto max-w-3xl rounded-lg border-2 border-zinc-600">
{/*content*/}
<div
Expand Down

1 comment on commit 6615fa8

@vercel
Copy link

@vercel vercel bot commented on 6615fa8 Apr 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.