Skip to content

Commit 5a278de

Browse files
EmilyyyLiu刘欢
authored andcommitted
fix: Mask from true to false without animation (#490)
Co-authored-by: 刘欢 <[email protected]>
1 parent a935bc9 commit 5a278de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DrawerPopup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ function DrawerPopup(props: DrawerPopupProps, ref: React.Ref<HTMLDivElement>) {
217217
);
218218

219219
// ============================ Mask ============================
220-
const maskNode: React.ReactNode = mask && (
221-
<CSSMotion key="mask" {...maskMotion} visible={open}>
220+
const maskNode: React.ReactNode = (
221+
<CSSMotion key="mask" {...maskMotion} visible={mask && open}>
222222
{(
223223
{ className: motionMaskClassName, style: motionMaskStyle },
224224
maskRef,

0 commit comments

Comments
 (0)