Skip to content

Commit 735b0f8

Browse files
committed
feat(filtering): delete empty expressions on cancel #5496
1 parent 59982bf commit 735b0f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

projects/igniteui-angular/src/lib/grids/filtering/advanced-filtering/advanced-filtering-dialog.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ export class IgxAdvancedFilteringDialogComponent {
181181
public cancelOperandEdit() {
182182
if (this.editedExpression) {
183183
this.editedExpression.inEditMode = false;
184+
185+
if (!this.editedExpression.expression.fieldName) {
186+
this.deleteItem(this.editedExpression);
187+
}
188+
184189
this.editedExpression = null;
185190
}
186191
}

0 commit comments

Comments
 (0)