igniteui-angular
igniteui-angular copied to clipboard
IgxDateFilteringOperand's operation "doesNotEqual" doesn't work if the "equals" operation is localized(modified).
Description
IgxDateFilteringOperand's operation "doesNotEqual" doesn't work if the "equals" operation localized(modified).
Steps to reproduce:
Localize strings in filtering operands like this constructor() { IgxDateFilteringOperand.instance().operations.forEach(operation => operation.name = this.localizeFilteringString(operation.name)); }
localizeFilteringString(targetString: string): string { let result: string = targetString; switch (targetString) { case 'equals': result = 'eq'; break; case 'all': result = '全て'; break; default: break; } return result; }
- Run the app and filter a Date column by 'Eq' for a Day in the Date column.
- Filter the Date Column by 'Does Not Equal' for the same day.
Result
Nothing happens.
Expected result
The grid should filter excluding the specified Day.