Skip to content

Commit

Permalink
Fix Bug 53360: Client.Files.Image - Removed the render when opening a…
Browse files Browse the repository at this point in the history
…nd closing the file delete dialog.
  • Loading branch information
TatianaLopaeva committed Nov 11, 2021
1 parent 0b13f99 commit 53cb682
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import MediaDownloadIcon from "../../../../../public/images/media.download.react
import commonIconsStyles from "@appserver/components/utils/common-icons-style";
import MediaScrollButton from "./scroll-button";
import ControlBtn from "./control-btn";
import equal from "fast-deep-equal/react";

const StyledMediaZoomInIcon = styled(MediaZoomInIcon)`
${commonIconsStyles}
Expand Down Expand Up @@ -228,6 +229,9 @@ class ImageViewer extends React.Component {
document.getElementsByClassName("iconContainer reset")[0].click();
}

shouldComponentUpdate(nextProps) {
return !equal(this.props, nextProps);
}
render() {
const {
className,
Expand Down

0 comments on commit 53cb682

Please sign in to comment.