Skip to content

Commit cc4b799

Browse files
committed
fix(query-builder): drop ghost for add button now in proper place
1 parent a793b09 commit cc4b799

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,12 +1194,12 @@ export class IgxQueryBuilderTreeComponent implements AfterViewInit, OnDestroy {
11941194
}
11951195

11961196
public onAddConditionEnter(addConditionElement: HTMLElement, rootGroup: ExpressionGroupItem) {
1197-
//console.log('onAddConditionEnter', targetDragElement);
1197+
//console.log('onAddConditionEnter', addConditionElement);
11981198
if (!this.sourceElement || !this.sourceExpressionItem) return;
1199-
1200-
const lastElement = this.getPreviousChip(addConditionElement.parentElement);
1199+
1200+
const lastElement = addConditionElement.parentElement.previousElementSibling.lastElementChild;
12011201
if (lastElement == this.dropGhostChipNode) return;
1202-
1202+
12031203
//simulate entering in the lower part of the last chip/group
12041204
this.onChipEnter(lastElement as HTMLElement,
12051205
rootGroup.children[rootGroup.children.length - 1],

0 commit comments

Comments
 (0)