Skip to content

Commit fecf2d6

Browse files
committed
chore(query-builder): apply code suggestion
1 parent fb827df commit fecf2d6

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-drag.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Z_INDEX_TO_SET = 10010; //overlay z-index is 10005
1010
/** @hidden @internal */
1111
@Injectable()
1212
export class IgxQueryBuilderDragService {
13-
13+
1414
/** The ExpressionItem that's actually the drop ghost's content */
1515
public dropGhostExpression: ExpressionItem;
1616
public isKeyboardDrag: boolean;
@@ -32,7 +32,7 @@ export class IgxQueryBuilderDragService {
3232

3333
/** Get the dragged ghost as a HTMLElement*/
3434
private get getDragGhostElement(): HTMLElement {
35-
return (document.querySelector('.igx-chip__ghost[ghostclass="igx-chip__ghost"]') as HTMLElement);
35+
return (document.querySelector(`.${QueryBuilderSelectors.CHIP_GHOST}[ghostclass="${QueryBuilderSelectors.CHIP_GHOST}"]`) as HTMLElement);
3636
}
3737

3838
/** Get the drop ghost chip component */
@@ -44,7 +44,7 @@ export class IgxQueryBuilderDragService {
4444
return this._queryBuilderTreeComponentElRef.nativeElement.querySelector(`.${QueryBuilderSelectors.FILTER_TREE}`);
4545
}
4646

47-
47+
4848
public register(tree: IgxQueryBuilderTreeComponent, el: ElementRef) {
4949
this._queryBuilderTreeComponent = tree;
5050
this._queryBuilderTreeComponentElRef = el;

0 commit comments

Comments
 (0)