Fixed #290 - InputMask somehow clears the initial value to empty string

pull/310/head
mertsincan 2020-04-24 09:44:04 +03:00
parent 9421398d39
commit 8dd06128c4
1 changed files with 12 additions and 11 deletions

View File

@ -243,14 +243,14 @@ export default {
if (this.$el) {
if (this.value == null) {
this.$el.value = '';
this.$emit('input', '');
}
else {
this.$el.value = this.value;
this.checkVal();
}
setTimeout(() => {
if(this.$el) {
if (this.$el) {
this.writeBuffer();
this.checkVal();
@ -258,6 +258,7 @@ export default {
this.$emit('input', (this.defaultBuffer !== val) ? val : '');
}
}, 10);
}
this.focusText = this.$el.value;
}