Skip to content

Commit a6ace2f

Browse files
fix(b-img-lazy): fix blank-src not work error (bootstrap-vue#6302)
use BImgLazy computed value props overwrite default BImg props Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
1 parent 555f5e2 commit a6ace2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/image/img-lazy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ export const BImgLazy = /*#__PURE__*/ Vue.extend({
140140
return h(BImg, {
141141
directives,
142142
props: {
143+
// Passthrough props
144+
...pluckProps(imgProps, this.$props),
143145
// Computed value props
144146
src: this.computedSrc,
145147
blank: this.computedBlank,
146148
width: this.computedWidth,
147149
height: this.computedHeight,
148150
srcset: this.computedSrcset || null,
149-
sizes: this.computedSizes || null,
150-
// Passthrough props
151-
...pluckProps(imgProps, this.$props)
151+
sizes: this.computedSizes || null
152152
}
153153
})
154154
}

0 commit comments

Comments
 (0)