diff --git a/package.json b/package.json index 8f36031..987db3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ibrahimcesar/react-lite-youtube-embed", - "version": "3.3.3", + "version": "3.4.0", "description": "A private by default, faster and cleaner YouTube embed component for React applications", "type": "module", "main": "dist/index.cjs", diff --git a/src/lib/index.tsx b/src/lib/index.tsx index ab066fa..9687cf3 100644 --- a/src/lib/index.tsx +++ b/src/lib/index.tsx @@ -740,7 +740,7 @@ function LiteYouTubeEmbedComponent( onClick={addIframe} className={`${wrapperClassImp} ${iframe ? activatedClassImp : ""}`} data-title={videoTitle} - role={!iframe ? "img" : undefined} + role={!iframe && !props.lazyLoad ? "img" : undefined} aria-label={ !iframe ? `${videoTitle} - YouTube video preview` : undefined }