Skip to content

Commit ff3bb4c

Browse files
Merge pull request #7187 from IgniteUI/ibarakov/fix-6973-8.2.x
fix(filtering): filter behavior on number type filter #6973
2 parents 8623eb1 + 789e7ee commit ff3bb4c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

projects/igniteui-angular/src/lib/grids/filtering/grid-filtering-row.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { IBaseChipEventArgs, IgxChipsAreaComponent, IgxChipComponent } from '../
2424
import { ExpressionUI } from './grid-filtering.service';
2525
import { IgxDropDownItemComponent } from '../../drop-down/drop-down-item.component';
2626
import { IgxFilteringService } from './grid-filtering.service';
27-
import { KEYS, isEdge } from '../../core/utils';
27+
import { KEYS, isEdge, isIE } from '../../core/utils';
2828
import { AbsoluteScrollStrategy } from '../../services/overlay/scroll';
2929

3030
/**
@@ -281,8 +281,10 @@ export class IgxGridFilteringRowComponent implements AfterViewInit {
281281
public onInput(eventArgs) {
282282
// The 'iskeyPressed' flag is needed for a case in IE, because the input event is fired on focus and for some reason,
283283
// when you have a japanese character as a placeholder, on init the value here is empty string .
284-
if (isEdge() || this.isKeyPressed || eventArgs.target.value) {
285-
this.value = eventArgs.target.value;
284+
const target = eventArgs.target;
285+
286+
if (isEdge() && target.type !== 'number' || this.isKeyPressed && isIE() || target.value || target.checkValidity()) {
287+
this.value = target.value;
286288
}
287289
}
288290

0 commit comments

Comments
 (0)