[WIP] Поправил ошибку раскрытия опций состояния

This commit is contained in:
DwCay
2023-06-21 17:04:42 +03:00
parent 1dcacfa08a
commit 6a29ad4abf

View File

@@ -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)];