From 94aee9174c51dded23281ec3a78486e4a92f3e60 Mon Sep 17 00:00:00 2001 From: Ghislain B Date: Mon, 23 Oct 2023 21:31:50 -0400 Subject: [PATCH] fix: Grid Menu mouseover event should work with `commandItems` array (#875) --- src/controls/slick.gridmenu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/slick.gridmenu.ts b/src/controls/slick.gridmenu.ts index 3b0c26a1..b40ce27f 100644 --- a/src/controls/slick.gridmenu.ts +++ b/src/controls/slick.gridmenu.ts @@ -476,7 +476,7 @@ export class SlickGridMenu { // optionally open sub-menu(s) by mouseover if (this._gridMenuOptions?.subMenuOpenByEvent === 'mouseover') { this._bindingEventService.bind(liElm, 'mouseover', ((e: DOMMouseOrTouchEvent) => { - if ((item as GridMenuItem).customItems) { + if ((item as GridMenuItem).commandItems || (item as GridMenuItem).customItems) { this.repositionSubMenu(item, args.level, e); } else if (!isSubMenu) { this.destroySubMenus();