Skip to content

Commit

Permalink
[Next] Exclude Image fill priority props from being added to ee m…
Browse files Browse the repository at this point in the history
…arkup (#1346)
  • Loading branch information
illiakovalenko authored Feb 17, 2023
1 parent 589a7bb commit f3b502d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/sitecore-jss-nextjs/src/components/NextImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const NextImage: React.FC<NextImageProps> = ({
imageParams,
field,
mediaUrlPrefix,
fill,
priority,
...otherProps
}) => {
// next handles src and we use a custom loader,
Expand Down Expand Up @@ -68,6 +70,8 @@ export const NextImage: React.FC<NextImageProps> = ({
const attrs = {
...img,
...otherProps,
fill,
priority,
src: mediaApi.updateImageUrl(
img.src as string,
imageParams as { [paramName: string]: string | number },
Expand Down

0 comments on commit f3b502d

Please sign in to comment.