Merge branch 'hotfix/v2.6.1' into bugfix/66037
This commit is contained in:
commit
78e8958d03
@ -951,6 +951,16 @@ export const ImageViewer = ({
|
|||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
useLayoutEffect(() => {
|
||||||
|
return () => {
|
||||||
|
if (imgRef.current) {
|
||||||
|
// abort img loading
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
imgRef.current.src = "";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{isMobile && !backgroundBlack && mobileDetails}
|
{isMobile && !backgroundBlack && mobileDetails}
|
||||||
|
Loading…
Reference in New Issue
Block a user