chore: simply code

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-10-10 11:59:46 +08:00
parent 4b6ee2ad42
commit f023d6296a
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import type { ForwardedRef } from "react"
import { forwardRef } from "react"
import { m } from "~/components/common/Motion"
import { stopPropagation } from "~/lib/dom"
import { cn } from "~/lib/utils"
import { RootPortal } from "../../portal"
@ -32,7 +33,7 @@ export const ModalOverlay = forwardRef(
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
style={{ zIndex }}
onClick={(e) => e.stopPropagation()}
onClick={stopPropagation}
/>
</RootPortal>
),