This commit is contained in:
2021-06-11 23:49:53 +00:00
parent 9d56cbb05d
commit e72fcc879a
3 changed files with 21 additions and 71 deletions

View File

@@ -762,7 +762,7 @@ export default {
this.value.items.push({
id: 0,
concurrency: 0,
notes: null,
notes: undefined, //to trigger validation on new
wiki: null,
customFields: "{}",
tags: [],
@@ -790,7 +790,10 @@ export default {
this.selectedRow = [{ index: newIndex }];
this.activeItemIndex = newIndex;
//trigger rule breaking / validation
this.fieldValueChanged(`items[${this.activeItemIndex}].notes`);
this.$nextTick(() => {
this.value.items[this.activeItemIndex].notes = null;
this.fieldValueChanged(`items[${this.activeItemIndex}].notes`);
});
},
unDeleteItem() {
this.value.items[this.activeItemIndex].deleted = false;