Refactor #633
parent
bddfb413ba
commit
9aa51b2877
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue