Поправлен баг

This commit is contained in:
Book Pauk
2022-11-30 16:36:07 +07:00
parent 01fb6479f3
commit 5372507acd

View File

@@ -74,7 +74,8 @@ const componentOptions = {
this.checkErrorAndEmit(true); this.checkErrorAndEmit(true);
}, },
modelValue(newValue) { modelValue(newValue) {
this.filteredValue = newValue; if (this.ready)//исправление бага TypeError: Cannot read properties of null (reading 'emitsOptions')
this.filteredValue = newValue;
}, },
min() { min() {
this.checkErrorAndEmit(); this.checkErrorAndEmit();
@@ -102,7 +103,8 @@ class NumInput {
filteredValue = 0; filteredValue = 0;
error = false; error = false;
created() { mounted() {
this.ready = true;
this.filteredValue = this.modelValue; this.filteredValue = this.modelValue;
} }