diff --git a/packages/next/client/image.tsx b/packages/next/client/image.tsx index 5752d6d900629..d8f3a21ae8afe 100644 --- a/packages/next/client/image.tsx +++ b/packages/next/client/image.tsx @@ -600,6 +600,7 @@ export default function Image({ loader, })} decoding="async" + data-nimg style={imgStyle} className={className} /> @@ -609,6 +610,7 @@ export default function Image({ {...rest} {...imgAttributes} decoding="async" + data-nimg className={className} ref={(img) => { setRef(img) @@ -633,9 +635,9 @@ export default function Image({ rel="preload" as="image" href={imgAttributes.srcSet ? undefined : imgAttributes.src} - // @ts-ignore: imagesrcset is not yet in the link element type + // @ts-ignore: imagesrcset is not yet in the link element type. imagesrcset={imgAttributes.srcSet} - // @ts-ignore: imagesizes is not yet in the link element type + // @ts-ignore: imagesizes is not yet in the link element type. imagesizes={imgAttributes.sizes} >