Skip to content

Commit 2418e05

Browse files
EmilyyyLiu刘欢
andauthored
fix: Mask from true to false without animation (#490)
Co-authored-by: 刘欢 <[email protected]>
1 parent 283ead8 commit 2418e05

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
@@ -220,8 +220,8 @@ const DrawerPopup: React.ForwardRefRenderFunction<
220220
);
221221

222222
// ============================ Mask ============================
223-
const maskNode: React.ReactNode = mask && (
224-
<CSSMotion key="mask" {...maskMotion} visible={open}>
223+
const maskNode: React.ReactNode = (
224+
<CSSMotion key="mask" {...maskMotion} visible={mask && open}>
225225
{(
226226
{ className: motionMaskClassName, style: motionMaskStyle },
227227
maskRef,

0 commit comments

Comments
 (0)