Skip to content

Commit 62d1710

Browse files
committed
fix type error
1 parent dbb223d commit 62d1710

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/Modal.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Box, css } from '@kuma-ui/core'
2-
import React, { forwardRef } from 'react'
2+
import React, { MouseEvent, forwardRef } from 'react'
33

44
const Modal = forwardRef<
55
HTMLDialogElement,
@@ -29,7 +29,12 @@ const Modal = forwardRef<
2929
onClick={onClose}
3030
onKeyDown={() => null}
3131
>
32-
<Box px={48} pt={48} pb={16} onClick={e => e.stopPropagation()}>
32+
<Box
33+
px={48}
34+
pt={48}
35+
pb={16}
36+
onClick={(e: MouseEvent<HTMLDivElement>) => e.stopPropagation()}
37+
>
3338
{children}
3439
</Box>
3540
</dialog>

0 commit comments

Comments
 (0)