diff --git a/src/utils/element.ts b/src/utils/element.ts index 16e63a5..a25f379 100644 --- a/src/utils/element.ts +++ b/src/utils/element.ts @@ -33,6 +33,7 @@ export function useOpened(externallyOpened: boolean, event: Actions, closeOnClic if (event === Actions.CLICK) { eventProps.onClick = open; } else if (event === Actions.HOVER) { + eventProps.onClick = open; eventProps.onMouseEnter = open; eventProps.onMouseLeave = close; }