WIP Поправил валидации на инпутах и баг с обновлением формы
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user