Merge branch 'hotfix/v2.6.1' into bugfix/66037

This commit is contained in:
Alexey Safronov 2024-08-06 14:24:53 +04:00
commit 78e8958d03

View File

@ -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}