WIP Поправил валидации на инпутах и баг с обновлением формы

This commit is contained in:
DwCay
2023-04-21 18:05:01 +03:00
parent 50409bbd95
commit 75402fb209
6 changed files with 54 additions and 53 deletions

View File

@@ -49,7 +49,7 @@
v-if="isEdit"
left-icon="icon-plus"
added-border-none
@click="addNewAllergy"
@click="(e) => addNewAllergy(e)"
:icon-left-size="12"
)
span.font-medium.text-base Добавить
@@ -142,11 +142,13 @@ export default {
checkChangeInput() {
this.isCheckChange = checkChangeData(this.initAllergies, this.allergies);
},
addNewAllergy() {
this.allergies.push({
name: null,
title: null,
});
addNewAllergy(e) {
if (e.pointerType) {
this.allergies.push({
name: null,
title: null,
});
}
this.checkChangeInput();
},
deleteAllergy(index) {