Skip to content

Commit e2e61fa

Browse files
committedJan 13, 2025··
fix(NuxtImg): do not access props in template
1 parent 64cb0c9 commit e2e61fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/runtime/components/NuxtImg.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img
33
v-if="!custom"
44
ref="imgEl"
5-
:class="props.placeholder && !placeholderLoaded ? props.placeholderClass : undefined"
5+
:class="placeholder && !placeholderLoaded ? placeholderClass : undefined"
66
v-bind="{
77
...isServer ? { onerror: 'this.setAttribute(\'data-error\', 1)' } : {},
88
...imgAttrs,

0 commit comments

Comments
 (0)
Please sign in to comment.