mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
Fix List Reload Bug
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user