From 1be9a44a3554a0ee2d4ea2eb1387a44214e32a07 Mon Sep 17 00:00:00 2001 From: illiakovalenko Date: Fri, 17 Feb 2023 08:28:04 +0200 Subject: [PATCH] [Next] Exclude Image `fill` `priority` props from being added to ee markup --- packages/sitecore-jss-nextjs/src/components/NextImage.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/sitecore-jss-nextjs/src/components/NextImage.tsx b/packages/sitecore-jss-nextjs/src/components/NextImage.tsx index 70e4f54860..c3c4710d79 100644 --- a/packages/sitecore-jss-nextjs/src/components/NextImage.tsx +++ b/packages/sitecore-jss-nextjs/src/components/NextImage.tsx @@ -28,6 +28,8 @@ export const NextImage: React.FC = ({ imageParams, field, mediaUrlPrefix, + fill, + priority, ...otherProps }) => { // next handles src and we use a custom loader, @@ -68,6 +70,8 @@ export const NextImage: React.FC = ({ const attrs = { ...img, ...otherProps, + fill, + priority, src: mediaApi.updateImageUrl( img.src as string, imageParams as { [paramName: string]: string | number },