Skip to content

Commit

Permalink
Updating API.
Browse files Browse the repository at this point in the history
  • Loading branch information
khmakoto committed Jul 11, 2023
1 parent d84eb05 commit c0601ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export const useOnMenuMouseEnter = (options: UseOnClickOrScrollOutsideOptions) =

/**
* Dispatches the custom MouseEvent enter event. Similar to calling `el.click()`
* @param el element for the event target
* @param nativeEvent the native mouse event this is mapped to
* @param el - element for the event target
* @param nativeEvent - the native mouse event this is mapped to
*/
export const dispatchMenuEnterEvent = (el: HTMLElement, nativeEvent: MouseEvent) => {
el.dispatchEvent(new CustomEvent(MENU_ENTER_EVENT, { bubbles: true, detail: { nativeEvent } }));
Expand Down

0 comments on commit c0601ac

Please sign in to comment.