Fixed #950 - Error when removing InputNumbers from DOM tree
parent
49f33df9cd
commit
19f4fe0ed2
|
@ -297,6 +297,7 @@ export default {
|
||||||
this.spin(event, dir);
|
this.spin(event, dir);
|
||||||
},
|
},
|
||||||
spin(event, dir) {
|
spin(event, dir) {
|
||||||
|
if (this.$refs.input) {
|
||||||
let step = this.step * dir;
|
let step = this.step * dir;
|
||||||
let currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
|
let currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
|
||||||
let newValue = this.validateValue(currentValue + step);
|
let newValue = this.validateValue(currentValue + step);
|
||||||
|
@ -305,6 +306,7 @@ export default {
|
||||||
this.updateModel(event, newValue);
|
this.updateModel(event, newValue);
|
||||||
|
|
||||||
this.handleOnInput(event, currentValue, newValue);
|
this.handleOnInput(event, currentValue, newValue);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onUpButtonMouseDown(event) {
|
onUpButtonMouseDown(event) {
|
||||||
if (!this.$attrs.disabled) {
|
if (!this.$attrs.disabled) {
|
||||||
|
|
Loading…
Reference in New Issue