From 1d8feacdd7f7fe29962c1cd592e64972e616bd23 Mon Sep 17 00:00:00 2001 From: SAndreeva Date: Wed, 16 Jan 2019 15:28:29 +0200 Subject: [PATCH] refactor(*): combine clauses to avoid code duplication #3599 --- .../src/lib/grids/filtering/grid-filtering-row.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/igniteui-angular/src/lib/grids/filtering/grid-filtering-row.component.ts b/projects/igniteui-angular/src/lib/grids/filtering/grid-filtering-row.component.ts index e8c0bf05c5e..cdb31660603 100644 --- a/projects/igniteui-angular/src/lib/grids/filtering/grid-filtering-row.component.ts +++ b/projects/igniteui-angular/src/lib/grids/filtering/grid-filtering-row.component.ts @@ -286,9 +286,7 @@ export class IgxGridFilteringRowComponent implements AfterViewInit { public onInput(eventArgs) { // The 'iskeyPressed' flag is needed for a case in IE, because the input event is fired on focus and for some reason, // when you have a japanese character as a placeholder, on init the value here is empty string . - if (isEdge()) { - this.value = eventArgs.target.value; - } else if (this.isKeyPressed) { + if (isEdge() || this.isKeyPressed) { this.value = eventArgs.target.value; } }