Skip to content

Commit

Permalink
fix(esf): include 'false' value in search #5520
Browse files Browse the repository at this point in the history
  • Loading branch information
tachojelev committed Jul 26, 2019
1 parent 447a8da commit 2e72ea3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class IgxExcelStyleSearchFilterPipe implements PipeTransform {

searchText = searchText.toLowerCase();
const result = items.filter((it, i) => (i === 0 && it.isSpecial) ||
(it.value || it.value === 0) &&
(it.value !== null && it.value !== undefined) &&
it.value.toString().toLowerCase().indexOf(searchText) > -1);

return result.length > 1 ? result : [];
Expand Down

0 comments on commit 2e72ea3

Please sign in to comment.