From 2096016f3498fe57f84b03e92dfd7e751dfb7ee9 Mon Sep 17 00:00:00 2001 From: Nicolas Gilbert Date: Mon, 7 Mar 2022 07:56:45 -0500 Subject: [PATCH] Reload iframe when the url changes It happens when the version changes --- lib/components/src/Zoom/ZoomIFrame.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/components/src/Zoom/ZoomIFrame.tsx b/lib/components/src/Zoom/ZoomIFrame.tsx index 2c377edc8057..1c2f0735b5fa 100644 --- a/lib/components/src/Zoom/ZoomIFrame.tsx +++ b/lib/components/src/Zoom/ZoomIFrame.tsx @@ -29,7 +29,8 @@ export class ZoomIFrame extends Component { // this component renders an iframe, which gets updates via post-messages // never update this component, it will cause the iframe to refresh - return false; + // the only exception is when the url changes, which happens when the version changes + return nextProps.children.props.src !== this.props.children.props.src; } setIframeInnerZoom(scale: number) {