Skip to content

Commit

Permalink
Merge pull request #5523 from franklx/master
Browse files Browse the repository at this point in the history
Fix TreeTable not using filterField
  • Loading branch information
tugcekucukoglu committed Apr 19, 2024
2 parents 26d9769 + e31e2bd commit d930348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/lib/treetable/TreeTable.vue
Expand Up @@ -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 };
Expand Down

0 comments on commit d930348

Please sign in to comment.