Fixed filtering
parent
bfc723d06e
commit
1e56e62f40
|
@ -597,7 +597,7 @@ export default {
|
||||||
if (Object.prototype.hasOwnProperty.call(this.filters, columnField)) {
|
if (Object.prototype.hasOwnProperty.call(this.filters, columnField)) {
|
||||||
let filterValue = this.filters[columnField];
|
let filterValue = this.filters[columnField];
|
||||||
let dataFieldValue = ObjectUtils.resolveFieldData(data[i], columnField);
|
let dataFieldValue = ObjectUtils.resolveFieldData(data[i], columnField);
|
||||||
let filterConstraint = col.props.filterMatchMode === 'custom' ? col.props.filterFunction : FilterUtils[col.props.filterMatchMode];
|
let filterConstraint = col.props.filterMatchMode === 'custom' ? col.props.filterFunction : FilterUtils[col.props.filterMatchMode||'startsWith'];
|
||||||
if (!filterConstraint(dataFieldValue, filterValue, this.filterLocale)) {
|
if (!filterConstraint(dataFieldValue, filterValue, this.filterLocale)) {
|
||||||
localMatch = false;
|
localMatch = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue