Skip to content

Commit 6c04c0f

Browse files
committed
chore(qb): emit event on delete
1 parent ad47a2c commit 6c04c0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/igniteui-angular/src/lib/query-builder/query-builder.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ export class IgxQueryBuilderComponent extends DisplayDensityBase implements Afte
11171117
if (!expressionItem.parent) {
11181118
this.rootGroup = null;
11191119
this.currentGroup = null;
1120+
this._expressionTree = null;
11201121
return;
11211122
}
11221123

@@ -1127,10 +1128,13 @@ export class IgxQueryBuilderComponent extends DisplayDensityBase implements Afte
11271128
const children = expressionItem.parent.children;
11281129
const index = children.indexOf(expressionItem);
11291130
children.splice(index, 1);
1131+
this._expressionTree = this.createExpressionTreeFromGroupItem(this.rootGroup);
11301132

11311133
if (!children.length) {
11321134
this.deleteItem(expressionItem.parent);
11331135
}
1136+
1137+
this.expressionTreeChange.emit();
11341138
}
11351139

11361140
private createGroup(operator: FilteringLogic) {

0 commit comments

Comments
 (0)