mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Fix TreeTable not using filterField
This commit is contained in:
parent
52fc48780a
commit
e31e2bd983
1 changed files with 3 additions and 3 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue