Skip to content

Commit

Permalink
fix: Grid Menu mouseover event should work with commandItems array (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Oct 24, 2023
1 parent 78ea6ae commit 94aee91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/slick.gridmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLDivElement>) => {
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();
Expand Down

0 comments on commit 94aee91

Please sign in to comment.