Fix input getting wrong value after manual update

This commit is contained in:
Marcos Moura 2016-11-21 00:18:46 -02:00
parent c2d8e505f3
commit a8071a2415

View file

@ -49,7 +49,7 @@ export default {
},
onInput() {
this.setParentValue();
this.parentContainer.inputLength = this.value.length;
this.parentContainer.inputLength = this.value ? this.value.length : 0;
this.$emit('change', this.value);
this.$emit('input', this.value);
}