[WEB-5103] fix: custom menu event propagation (#7932)
* fix: custommenu event propagation * chore: code refactor
This commit is contained in:
parent
151674687c
commit
2c17f8ad72
1 changed files with 5 additions and 1 deletions
|
|
@ -222,7 +222,11 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
|
|||
tabIndex={tabIndex}
|
||||
className={cn("relative w-min text-left", className)}
|
||||
onKeyDownCapture={handleKeyDown}
|
||||
onClick={handleOnClick}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
handleOnClick();
|
||||
}}
|
||||
onMouseEnter={handleMouseEnter}
|
||||
onMouseLeave={handleMouseLeave}
|
||||
data-main-menu="true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue