Skip to content

Commit

Permalink
#15 fix return on filterData per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ths2-9Y-LqJt6 committed Jun 22, 2016
1 parent dd7baee commit a52ab38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ export default class Filters {
} else if (columnDetails.filterMethod === 'field') {
const filterValue = rowNode.querySelector('.mt-filter-value').value;
if (filterValue === '') continue;
return (d[filterName].toLowerCase().indexOf(filterValue.toLowerCase()) !== -1);
if (d[filterName].toLowerCase().indexOf(filterValue.toLowerCase()) === -1) {
matched = false;
}
} else if (columnDetails.filterMethod === 'compare') {
const filterRange = rowNode.querySelector('.mt-filter-range').value;
if (filterRange === 'BETWEEN') {
Expand Down Expand Up @@ -351,9 +353,7 @@ export default class Filters {
}
}
}
if (d[filterName].toLowerCase().indexOf(filterValue.toLowerCase()) !== -1) {
matched = false;
}
return matched;
});
}

Expand Down

0 comments on commit a52ab38

Please sign in to comment.