From e31e2bd9830fc6fc50e1c4339ef0e4e695187f54 Mon Sep 17 00:00:00 2001 From: Franco Lucchini Date: Thu, 4 Apr 2024 06:44:17 +0200 Subject: [PATCH] Fix TreeTable not using filterField --- components/lib/treetable/TreeTable.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/lib/treetable/TreeTable.vue b/components/lib/treetable/TreeTable.vue index 9ec3a677f..71a93cd0e 100755 --- a/components/lib/treetable/TreeTable.vue +++ b/components/lib/treetable/TreeTable.vue @@ -494,12 +494,12 @@ export default { for (let j = 0; j < this.columns.length; j++) { let col = this.columns[j]; - let filterField = this.columnProp(col, 'field'); + let filterField = this.columnProp(col, 'filterField') || this.columnProp(col, 'field'); //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 filterValue = this.filters[this.columnProp(col, 'field')]; + let filterValue = this.filters[filterField]; let filterConstraint = FilterService.filters[filterMatchMode]; let paramsWithoutNode = { filterField, filterValue, filterConstraint, strict };