pull/682/head
mertsincan 2020-11-26 10:34:01 +03:00
parent bddfb413ba
commit 9aa51b2877
1 changed files with 6 additions and 7 deletions

View File

@ -803,15 +803,14 @@ export default {
onInputFocus() { onInputFocus() {
this.focused = true; this.focused = true;
}, },
onInputBlur() { onInputBlur(event) {
this.focused = false; this.focused = false;
if (this.$refs && this.$refs.input) { let input = event.target;
let newValue = this.validateValue(this.parseValue(this.$refs.input.$el.value)); let newValue = this.validateValue(this.parseValue(input.value));
this.$refs.input.$el.value = this.formatValue(newValue); input.value = this.formatValue(newValue);
this.$refs.input.$el.setAttribute('aria-valuenow', newValue); input.setAttribute('aria-valuenow', newValue);
this.updateModel(event, newValue); this.updateModel(event, newValue);
}
}, },
clearTimer() { clearTimer() {
if (this.timer) { if (this.timer) {