diff --git a/src/components/utils/ZoomImage.tsx b/src/components/utils/ZoomImage.tsx index 73d0b26cd5..674368c513 100644 --- a/src/components/utils/ZoomImage.tsx +++ b/src/components/utils/ZoomImage.tsx @@ -125,7 +125,12 @@ export function ZoomImage( ) : null} {ReactDOM.createPortal( - , + , document.body, )} @@ -166,8 +171,13 @@ export function ZoomImage( ); } -function ZoomImageModal(props: { src: string; alt: string; onClose: () => void }) { - const { src, alt, onClose } = props; +function ZoomImageModal(props: { + src: string; + alt: string; + crossOrigin: React.ComponentPropsWithoutRef<'img'>['crossOrigin']; + onClose: () => void; +}) { + const { src, alt, crossOrigin, onClose } = props; const buttonRef = React.useRef(null); @@ -210,6 +220,7 @@ function ZoomImageModal(props: { src: string; alt: string; onClose: () => void }