Skip to content

Commit 79b07c3

Browse files
committed
fix(filtering): Make unary condition committable #5627
1 parent 0ce3a31 commit 79b07c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,14 @@ export class IgxGridFilteringRowComponent implements AfterViewInit {
437437
* Event handler for focusout on the input group.
438438
*/
439439
public onInputGroupFocusout() {
440-
if (!this.value && this.value !== 0) {
440+
if (!this.value && this.value !== 0 && !this.expression.condition.isUnary) {
441441
return;
442442
}
443443
requestAnimationFrame(() => {
444444
const focusedElement = document.activeElement;
445+
if (focusedElement.className === 'igx-chip__remove') {
446+
return;
447+
}
445448
if (!(focusedElement && this.inputGroup.nativeElement.contains(focusedElement))
446449
&& this.dropDownConditions.collapsed) {
447450
this.commitInput();

0 commit comments

Comments
 (0)