diff --git a/lib/ui/src/components/preview/iframe.js b/lib/ui/src/components/preview/iframe.js index 7acbe5f70cf6..11762b2fd651 100644 --- a/lib/ui/src/components/preview/iframe.js +++ b/lib/ui/src/components/preview/iframe.js @@ -12,8 +12,8 @@ export class IFrame extends Component { } shouldComponentUpdate(nextProps) { - const { scale } = this.props; - return scale !== nextProps.scale; + const { scale, src } = this.props; + return scale !== nextProps.scale || src !== nextProps.src; } componentDidUpdate(prevProps) {