Skip to content

Commit 877ceb9

Browse files
committed
fix: onClick check
1 parent 480a594 commit 877ceb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DrawerPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export default function DrawerPopup(props: DrawerPopupProps) {
230230
...maskStyle,
231231
...zIndexStyle,
232232
}}
233-
onClick={maskClosable && onClose}
233+
onClick={maskClosable ? onClose : undefined}
234234
ref={maskRef}
235235
/>
236236
);

0 commit comments

Comments
 (0)