fix: #5878, #5261 : DataTable recursive loop introduced by commit 01b38bf

pull/7276/head
Florent Gimaret 2025-02-18 15:24:14 +01:00
parent acb9a5e888
commit 0b5407965c
1 changed files with 5 additions and 7 deletions

View File

@ -748,9 +748,7 @@ export default {
filterEvent.filteredValue = filteredValue; filterEvent.filteredValue = filteredValue;
this.$emit('filter', filterEvent); this.$emit('filter', filterEvent);
this.$nextTick(() => { this.$emit('value-change', filteredValue);
this.$emit('value-change', this.processedData);
});
return filteredValue; return filteredValue;
}, },
@ -2019,14 +2017,14 @@ export default {
if (!this.lazy && !this.virtualScrollerOptions?.lazy) { if (!this.lazy && !this.virtualScrollerOptions?.lazy) {
if (data && data.length) { if (data && data.length) {
if (this.hasFilters) {
data = this.filter(data);
}
if (this.sorted) { if (this.sorted) {
if (this.sortMode === 'single') data = this.sortSingle(data); if (this.sortMode === 'single') data = this.sortSingle(data);
else if (this.sortMode === 'multiple') data = this.sortMultiple(data); else if (this.sortMode === 'multiple') data = this.sortMultiple(data);
} }
if (this.hasFilters) {
data = this.filter(data);
}
} }
} }