Skip to content

Commit

Permalink
refactor(*): rewrite the senseless logic #3599
Browse files Browse the repository at this point in the history
  • Loading branch information
SAndreeva committed Jan 15, 2019
1 parent 97b6a07 commit 1aefcb3
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { IChipSelectEventArgs, IBaseChipEventArgs, IgxChipsAreaComponent, IgxChi
import { ExpressionUI } from './grid-filtering.service';
import { IgxDropDownItemComponent } from '../../drop-down/drop-down-item.component';
import { IgxFilteringService } from './grid-filtering.service';
import { KEYS, isIE } from '../../core/utils';
import { KEYS, isEdge } from '../../core/utils';
import { AbsoluteScrollStrategy } from '../../services/overlay/scroll';

/**
Expand Down Expand Up @@ -286,12 +286,11 @@ 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 (isIE() && this.isKeyPressed) {
if (isEdge()) {
this.value = eventArgs.target.value;
} else if (this.isKeyPressed) {
this.value = eventArgs.target.value;
return;
}

this.value = eventArgs.target.value;
}

/**
Expand Down

0 comments on commit 1aefcb3

Please sign in to comment.