Skip to content

Commit 832d69b

Browse files
committed
fix(grid): update action strip logic to check for menu items presence
1 parent a87714f commit 832d69b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

projects/igniteui-angular/core/src/grid-column-actions/token.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export abstract class IgxActionStripToken {
77
public abstract cdr: ChangeDetectorRef
88
public abstract context: any;
99
public abstract menuOverlaySettings: OverlaySettings;
10+
public abstract get menuItems(): any[];
1011
public abstract get hideOnRowLeave(): boolean;
1112

1213
public abstract show(context?: any): void;

projects/igniteui-angular/grids/grid/src/grid-base.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7797,7 +7797,7 @@ export abstract class IgxGridBaseDirective implements GridType,
77977797
const keepActionStrip =
77987798
!!context?.pinned &&
77997799
!!contextEl?.isConnected &&
7800-
!context?.asMenuItems;
7800+
!(this.actionStrip?.menuItems?.length > 0);
78017801

78027802
if (!keepActionStrip) {
78037803
if (this.actionStrip) {

0 commit comments

Comments
 (0)