Skip to content

Commit 546c39a

Browse files
authored
fix(igxHierarchicalGrid): Ensure root hierarchical grid takes only di… (#13776)
1 parent 7777429 commit 546c39a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
ChangeDetectionStrategy,
66
ChangeDetectorRef,
77
Component,
8+
ContentChild,
89
ContentChildren,
910
CUSTOM_ELEMENTS_SCHEMA,
1011
DoCheck,
@@ -64,6 +65,7 @@ import { IgxColumnMovingDropDirective } from '../moving/moving.drop.directive';
6465
import { IgxGridDragSelectDirective } from '../selection/drag-select.directive';
6566
import { IgxGridBodyDirective } from '../grid.common';
6667
import { IgxGridHeaderRowComponent } from '../headers/grid-header-row.component';
68+
import { IgxActionStripComponent } from '../../action-strip/action-strip.component';
6769

6870
let NEXT_ID = 0;
6971

@@ -406,6 +408,10 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti
406408
*/
407409
public childRow: IgxChildGridRowComponent;
408410

411+
/** @hidden @internal */
412+
@ContentChild(IgxActionStripComponent, { read: IgxActionStripComponent, descendants: false } )
413+
public override actionStrip: IgxActionStripComponent;
414+
409415
private _data;
410416
private h_id = `igx-hierarchical-grid-${NEXT_ID++}`;
411417
private childGridTemplates: Map<any, any> = new Map();

0 commit comments

Comments
 (0)