Skip to content

Commit e148eb5

Browse files
committed
Merge branch 'dmdimitrov/query-builder-improvements' into mcherkasov/qb-rehydration
2 parents 634115e + 8b53134 commit e148eb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,8 +1663,8 @@ export class IgxQueryBuilderTreeComponent implements AfterViewInit, OnDestroy {
16631663
this.cancelOperandEdit();
16641664

16651665
// Ignore values of 'parent' and 'hovered' properties for the comparison
1666-
const parentPropReplacer = function replacer(key, value) {
1667-
if (key === "parent" || key === "hovered") {
1666+
const propsReplacer = function replacer(key, value) {
1667+
if (key === "parent" || key === "hovered" || key === "ignoreCase" || key === "inEditMode") {
16681668
return undefined;
16691669
} else {
16701670
return value;
@@ -1673,7 +1673,7 @@ export class IgxQueryBuilderTreeComponent implements AfterViewInit, OnDestroy {
16731673

16741674
// Skip root being recreated if the same
16751675
const newRootGroup = this.createExpressionGroupItem(this.expressionTree);
1676-
if (JSON.stringify(this.rootGroup, parentPropReplacer) !== JSON.stringify(newRootGroup, parentPropReplacer)) {
1676+
if (JSON.stringify(this.rootGroup, propsReplacer) !== JSON.stringify(newRootGroup, propsReplacer)) {
16771677
this.rootGroup = this.createExpressionGroupItem(this.expressionTree);
16781678
this.currentGroup = this.rootGroup;
16791679
}

0 commit comments

Comments
 (0)