Fix TreeTable not using filterField

pull/5523/head
Franco Lucchini 2024-04-04 06:44:17 +02:00
parent 52fc48780a
commit e31e2bd983
1 changed files with 3 additions and 3 deletions

View File

@ -494,12 +494,12 @@ export default {
for (let j = 0; j < this.columns.length; j++) { for (let j = 0; j < this.columns.length; j++) {
let col = this.columns[j]; let col = this.columns[j];
let filterField = this.columnProp(col, 'field'); let filterField = this.columnProp(col, 'filterField') || this.columnProp(col, 'field');
//local //local
if (Object.prototype.hasOwnProperty.call(this.filters, this.columnProp(col, 'field'))) { if (Object.prototype.hasOwnProperty.call(this.filters, filterField)) {
let filterMatchMode = this.columnProp(col, 'filterMatchMode') || 'startsWith'; let filterMatchMode = this.columnProp(col, 'filterMatchMode') || 'startsWith';
let filterValue = this.filters[this.columnProp(col, 'field')]; let filterValue = this.filters[filterField];
let filterConstraint = FilterService.filters[filterMatchMode]; let filterConstraint = FilterService.filters[filterMatchMode];
let paramsWithoutNode = { filterField, filterValue, filterConstraint, strict }; let paramsWithoutNode = { filterField, filterValue, filterConstraint, strict };