Excel style filtering for strings throws errors in the console #15113
Labels
🐛 bug
Any issue that describes a bug
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Description
Excel style filtering for strings throws errors in the console when there are value in the grid which have just one letter or number.
Its introduced from this changes -> #14906
Steps to reproduce
Here is Stackblitz link -> https://stackblitz.com/edit/e7anky?file=src%2Fapp%2Fdata%2FnwindData.ts,src%2Fapp%2Fdirectives%2Fprevent-scroll.directive.ts
Result
Even though the filtering works it throws error in the console
Expected result
No errors in the console
Note
I explored the codebase, the issue is in excel-style-filtering.component.ts in the renderValues and modifyExpression methods
the modifyExpression method tries to add in searchVal a value, but a searchVal is a string. I assume the if statement of renderValues should cover this scenario.
The text was updated successfully, but these errors were encountered: