mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3818 - DataTable: Pass sorted data on sort event
This commit is contained in:
parent
37a3bb1308
commit
01b38bf5ae
1 changed files with 9 additions and 3 deletions
|
@ -458,7 +458,9 @@ export default {
|
|||
this.$emit('update:first', this.d_first);
|
||||
this.$emit('update:rows', this.d_rows);
|
||||
this.$emit('page', pageEvent);
|
||||
this.$emit('value-change', this.processedData);
|
||||
this.$nextTick(() => {
|
||||
this.$emit('value-change', this.processedData);
|
||||
});
|
||||
},
|
||||
onColumnHeaderClick(e) {
|
||||
const event = e.originalEvent;
|
||||
|
@ -507,7 +509,9 @@ export default {
|
|||
}
|
||||
|
||||
this.$emit('sort', this.createLazyLoadEvent(event));
|
||||
this.$emit('value-change', this.processedData);
|
||||
this.$nextTick(() => {
|
||||
this.$emit('value-change', this.processedData);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -683,7 +687,9 @@ export default {
|
|||
|
||||
filterEvent.filteredValue = filteredValue;
|
||||
this.$emit('filter', filterEvent);
|
||||
this.$emit('value-change', filteredValue);
|
||||
this.$nextTick(() => {
|
||||
this.$emit('value-change', this.processedData);
|
||||
});
|
||||
|
||||
return filteredValue;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue