Skip to content

Commit f556e4e

Browse files
committed
fix(grid): update action strip logic to check for menu items presence
1 parent 000e5f2 commit f556e4e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/action-strip/token.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { OverlaySettings } from '../services/public_api';
55
export abstract class IgxActionStripToken {
66
public abstract context: any;
77
public abstract menuOverlaySettings: OverlaySettings;
8+
public abstract get menuItems(): any[];
89
public abstract get hideOnRowLeave(): boolean;
910

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7836,7 +7836,7 @@ export abstract class IgxGridBaseDirective implements GridType,
78367836
const keepActionStrip =
78377837
!!context?.pinned &&
78387838
!!contextEl?.isConnected &&
7839-
!context?.asMenuItems;
7839+
!(this.actionStrip?.menuItems?.length > 0);
78407840

78417841
if (!keepActionStrip) {
78427842
if (this.actionStrip) {

0 commit comments

Comments
 (0)