Offeri frame flash fix (#19565)
This commit is contained in:
parent
e4f60ee028
commit
0627840f13
@ -18,6 +18,7 @@ const PortalFrame: React.FC<PortalFrameProps> = ({href, onDestroyed, selectedTab
|
||||
const makeVisible = useCallback(() => {
|
||||
setTimeout(() => {
|
||||
if (iframeRef.current) {
|
||||
setHasLoaded(true);
|
||||
setIsInvisible(false);
|
||||
}
|
||||
}, 300);
|
||||
@ -60,7 +61,6 @@ const PortalFrame: React.FC<PortalFrameProps> = ({href, onDestroyed, selectedTab
|
||||
title="Portal Preview"
|
||||
width="100%"
|
||||
onLoad={() => {
|
||||
setHasLoaded(true);
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user