Fix List Reload Bug

This commit is contained in:
cgfhtw
2024-07-30 09:54:46 +02:00
parent f2b81ea68c
commit 8a637f3fa9
@@ -119,6 +119,7 @@ export default {
this.$refs.new.open(); this.$refs.new.open();
}, },
rowSelectionChanged(data) { rowSelectionChanged(data) {
this.lastSelected = this.selected;
this.$emit('update:selected', data); this.$emit('update:selected', data);
}, },
autoSelectRows(data) { autoSelectRows(data) {
@@ -129,8 +130,6 @@ export default {
// or maybe reselect only the last one? // or maybe reselect only the last one?
selected = selected.filter(el => el); selected = selected.filter(el => el);
this.lastSelected = null;
if (selected.length) if (selected.length)
this.$refs.table.tabulator.selectRow(selected); this.$refs.table.tabulator.selectRow(selected);
} else if(this.lastSelected === undefined) { } else if(this.lastSelected === undefined) {