We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
this.inputRef
1 parent 7109a06 commit 5b36b9cCopy full SHA for 5b36b9c
components/vc-input-number/src/index.js
@@ -292,7 +292,7 @@ export default defineComponent({
292
});
293
const value = this.getCurrentValidValue(this.$data.inputValue);
294
const newValue = this.setValue(value);
295
- if (this.$attrs.onBlur) {
+ if (this.$attrs.onBlur && this.inputRef) {
296
const originValue = this.inputRef.value;
297
const inputValue = this.getInputDisplayValue({ focused: false, sValue: newValue });
298
this.inputRef.value = inputValue;
0 commit comments