Skip to content

Commit 950f339

Browse files
committed
fix(grid): improve action strip visibility logic during scrolling
1 parent 0630994 commit 950f339

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7792,9 +7792,18 @@ export abstract class IgxGridBaseDirective implements GridType,
77927792
this.disableTransitions = false;
77937793

77947794
this.hideOverlays();
7795-
this.actionStrip?.hide();
7796-
if (this.actionStrip) {
7797-
this.actionStrip.context = null;
7795+
const context = this.actionStrip?.context;
7796+
const contextEl = context?.element?.nativeElement as HTMLElement;
7797+
const keepActionStrip =
7798+
!!context?.pinned &&
7799+
!!contextEl?.isConnected &&
7800+
!!contextEl?.matches?.(':hover');
7801+
7802+
if (!keepActionStrip) {
7803+
this.actionStrip?.hide();
7804+
if (this.actionStrip) {
7805+
this.actionStrip.context = null;
7806+
}
77987807
}
77997808
const args: IGridScrollEventArgs = {
78007809
direction: 'vertical',

0 commit comments

Comments
 (0)