Поправлен баг
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user