From 5372507acd1f54e141e55d9a83e8f2b5455419c6 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 30 Nov 2022 16:36:07 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/share/NumInput.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/components/share/NumInput.vue b/client/components/share/NumInput.vue index 9e32af7..f97bd47 100644 --- a/client/components/share/NumInput.vue +++ b/client/components/share/NumInput.vue @@ -74,7 +74,8 @@ const componentOptions = { this.checkErrorAndEmit(true); }, modelValue(newValue) { - this.filteredValue = newValue; + if (this.ready)//исправление бага TypeError: Cannot read properties of null (reading 'emitsOptions') + this.filteredValue = newValue; }, min() { this.checkErrorAndEmit(); @@ -102,7 +103,8 @@ class NumInput { filteredValue = 0; error = false; - created() { + mounted() { + this.ready = true; this.filteredValue = this.modelValue; }