We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3985c4 commit d3b489aCopy full SHA for d3b489a
src/Preview/index.tsx
@@ -389,7 +389,7 @@ const Preview: React.FC<PreviewProps> = props => {
389
}
390
391
return (
392
- <Portal open={portalRender} getContainer={getContainer} autoLock={lockScroll}>
+ <Portal open={portalRender && open} getContainer={getContainer} autoLock={lockScroll}>
393
<CSSMotion
394
motionName={motionName}
395
visible={portalRender && open}
0 commit comments