From 6a29ad4abf29fed960a20d86bf5597e7a63ccb4f Mon Sep 17 00:00:00 2001 From: DwCay Date: Wed, 21 Jun 2023 17:04:42 +0300 Subject: [PATCH] =?UTF-8?q?[WIP]=20=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D1=83=20=D1=80?= =?UTF-8?q?=D0=B0=D1=81=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D1=8F=20=D0=BE=D0=BF?= =?UTF-8?q?=D1=86=D0=B8=D0=B9=20=D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/ToothFormula/DentalConditionForm.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/DentalConditionForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/DentalConditionForm.vue index c362177..703e6ac 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/DentalConditionForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/DentalConditionForm.vue @@ -27,6 +27,7 @@ v-for="(type, key) in formConfig.conditions", v-model="isOpenExpansion[key]", :label="type.label", + @click="() => partId = ''" @after-show="()=>jumpToItem()" ) .general-expaction.flex.flex-col.pl-4(v-if="!type?.partsTooth") @@ -137,10 +138,12 @@ export default { } }, jumpToItem() { - this.$refs[this.partId][0].scrollIntoView({ - block: "center", - behavior: "smooth", - }); + if (this.partId) { + this.$refs[this.partId][0].scrollIntoView({ + block: "center", + behavior: "smooth", + }); + } }, updateConditions() { let arraySelected = [...this.getFilledConditions(this.data)];