Skip to content

Commit 7f0794c

Browse files
authored
Merge pull request #7568 from IgniteUI/skrastev/fix-7561-9.1.x
fix(igxDrag): Add descendants support for igxDragIgnore and igxDragHandle.
2 parents 1e1e1d5 + 5d462e7 commit 7f0794c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

projects/igniteui-angular/src/lib/directives/drag-drop/drag-drop.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,13 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy {
449449
/**
450450
* @hidden
451451
*/
452-
@ContentChildren(IgxDragHandleDirective)
452+
@ContentChildren(IgxDragHandleDirective, { descendants: true })
453453
public dragHandles: QueryList<IgxDragHandleDirective>;
454454

455455
/**
456456
* @hidden
457457
*/
458-
@ContentChildren(IgxDragIgnoreDirective)
458+
@ContentChildren(IgxDragIgnoreDirective, { descendants: true })
459459
public dragIgnoredElems: QueryList<IgxDragIgnoreDirective>;
460460

461461
/**

projects/igniteui-angular/src/lib/directives/drag-drop/drag-drop.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,9 @@ const generalStyles = [`
18901890
<div id="thirdDrag" class="dragElem" [igxDrag]="{ key: 3 }">
18911891
Drag 3
18921892
<div igxDragHandle class="dragHandle"></div>
1893-
<div igxDragIgnore class="ignoredElem"></div>
1893+
<div>
1894+
<div igxDragIgnore class="ignoredElem"></div>
1895+
</div>
18941896
</div>
18951897
<ng-template #ghostTemplate>
18961898
<div class="ghostElement">Drag Template</div>

0 commit comments

Comments
 (0)