diff --git a/src/courseware/course/sequence/Unit/hooks/useIFrameBehavior.js b/src/courseware/course/sequence/Unit/hooks/useIFrameBehavior.js index b41cec0b5f..151a3e7592 100644 --- a/src/courseware/course/sequence/Unit/hooks/useIFrameBehavior.js +++ b/src/courseware/course/sequence/Unit/hooks/useIFrameBehavior.js @@ -105,6 +105,11 @@ const useIFrameBehavior = ({ }; }; + React.useEffect(() => { + setIframeHeight(0); + setHasLoaded(false); + }, [iframeUrl]); + return { iframeHeight, handleIFrameLoad,