Skip to content

Commit d3b489a

Browse files
committed
fix(Image): Image mask fade enter blur transition does not work
1 parent d3985c4 commit d3b489a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Preview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ const Preview: React.FC<PreviewProps> = props => {
389389
}
390390

391391
return (
392-
<Portal open={portalRender} getContainer={getContainer} autoLock={lockScroll}>
392+
<Portal open={portalRender && open} getContainer={getContainer} autoLock={lockScroll}>
393393
<CSSMotion
394394
motionName={motionName}
395395
visible={portalRender && open}

0 commit comments

Comments
 (0)