Skip to content

Commit

Permalink
Add layout to data-nimg attribute (#28312)
Browse files Browse the repository at this point in the history
  • Loading branch information
atcastle committed Aug 20, 2021
1 parent d6e8248 commit a0f64ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/client/image.tsx
Expand Up @@ -601,7 +601,7 @@ export default function Image({
{...rest}
{...imgAttributes}
decoding="async"
data-nimg
data-nimg={layout}
className={className}
ref={(img) => {
setRef(img)
Expand All @@ -622,7 +622,7 @@ export default function Image({
loader,
})}
decoding="async"
data-nimg
data-nimg={layout}
style={imgStyle}
className={className}
loading={loading || 'lazy'}
Expand Down

0 comments on commit a0f64ba

Please sign in to comment.