Skip to content

Commit f3fe0f4

Browse files
larionovtmorehouse
authored andcommitted
fix(id): fixed check for _uid in client side id generator (bootstrap-vue#1499)
On the first run _uid === 0 and this value fails the check not generating an id for the component.
1 parent f32e4ca commit f3fe0f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mixins/id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
}
1717
},
1818
mounted () {
19-
if (!this.$isServer && !this.id && this._uid) {
19+
if (!this.$isServer && !this.id && typeof this._uid !== 'undefined') {
2020
this.localId_ = `__BVID__${this._uid}_`
2121
}
2222
},

0 commit comments

Comments
 (0)