Skip to content

Commit

Permalink
fix(VImg): set crossOrigin attribute before src (#20915)
Browse files Browse the repository at this point in the history
fixes #20914
  • Loading branch information
kzfk authored Jan 24, 2025
1 parent 744e1e1 commit 910935e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/components/VImg/VImg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ export const VImg = genericComponent<VImgSlots>()({
<img
class={['v-img__img', containClasses.value]}
style={{ objectPosition: props.position }}
crossorigin={ props.crossorigin }
src={ normalisedSrc.value.src }
srcset={ normalisedSrc.value.srcset }
alt={ props.alt }
crossorigin={ props.crossorigin }
referrerpolicy={ props.referrerpolicy }
draggable={ props.draggable }
sizes={ props.sizes }
Expand Down Expand Up @@ -291,9 +291,9 @@ export const VImg = genericComponent<VImgSlots>()({
<img
class={['v-img__img', 'v-img__img--preload', containClasses.value]}
style={{ objectPosition: props.position }}
crossorigin={ props.crossorigin }
src={ normalisedSrc.value.lazySrc }
alt={ props.alt }
crossorigin={ props.crossorigin }
referrerpolicy={ props.referrerpolicy }
draggable={ props.draggable }
/>
Expand Down

0 comments on commit 910935e

Please sign in to comment.