Permalink
Browse files

fix(id): fixed check for _uid in client side id generator (#1499)

On the first run _uid === 0 and this value fails the check not generating an id for the component.
  • Loading branch information...
larionov authored and tmorehouse committed Dec 28, 2017
1 parent f32e4ca commit f3fe0f468b6cf242bb2af41b9fee3d5a67db2197
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mixins/id.js
@@ -16,7 +16,7 @@ export default {
}
},
mounted () {
if (!this.$isServer && !this.id && this._uid) {
if (!this.$isServer && !this.id && typeof this._uid !== 'undefined') {
this.localId_ = `__BVID__${this._uid}_`
}
},

0 comments on commit f3fe0f4

Please sign in to comment.