diff --git a/src/components/inputnumber/InputNumber.vue b/src/components/inputnumber/InputNumber.vue index 82370fdb6..31fa67b0c 100755 --- a/src/components/inputnumber/InputNumber.vue +++ b/src/components/inputnumber/InputNumber.vue @@ -798,10 +798,12 @@ export default { onInputBlur() { this.focused = false; - 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); + 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) {