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(() => {
|
const makeVisible = useCallback(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (iframeRef.current) {
|
if (iframeRef.current) {
|
||||||
|
setHasLoaded(true);
|
||||||
setIsInvisible(false);
|
setIsInvisible(false);
|
||||||
}
|
}
|
||||||
}, 300);
|
}, 300);
|
||||||
@ -60,7 +61,6 @@ const PortalFrame: React.FC<PortalFrameProps> = ({href, onDestroyed, selectedTab
|
|||||||
title="Portal Preview"
|
title="Portal Preview"
|
||||||
width="100%"
|
width="100%"
|
||||||
onLoad={() => {
|
onLoad={() => {
|
||||||
setHasLoaded(true);
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user