Fixed #633 - InputNumber's onInputBlur fails when component gets destroyed
parent
27736c8ce7
commit
e02f55ef5b
|
@ -798,10 +798,12 @@ export default {
|
|||
onInputBlur() {
|
||||
this.focused = false;
|
||||
|
||||
if (this.$refs && this.$refs.input) {
|
||||
let newValue = this.validateValue(this.parseValue(this.$refs.input.$el.value));
|
||||
this.$refs.input.$el.value = this.formatValue(newValue);
|
||||
this.$refs.input.$el.setAttribute('aria-valuenow', newValue);
|
||||
this.updateModel(event, newValue);
|
||||
}
|
||||
},
|
||||
clearTimer() {
|
||||
if (this.timer) {
|
||||
|
|
Loading…
Reference in New Issue