Skip to content

Commit

Permalink
fix(NuxtImg): do not access props in template
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 13, 2025
1 parent 64cb0c9 commit e2e61fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/NuxtImg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img
v-if="!custom"
ref="imgEl"
:class="props.placeholder && !placeholderLoaded ? props.placeholderClass : undefined"
:class="placeholder && !placeholderLoaded ? placeholderClass : undefined"
v-bind="{
...isServer ? { onerror: 'this.setAttribute(\'data-error\', 1)' } : {},
...imgAttrs,
Expand Down

0 comments on commit e2e61fa

Please sign in to comment.