forked from github/plane
fix: prevent custom menu button from opening cycle/ module details page when closed. (#4025)
This commit is contained in:
parent
58a45c96c0
commit
23f77328d4
@ -131,6 +131,7 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
|
||||
ref={setReferenceElement}
|
||||
type="button"
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
isOpen ? closeDropdown() : openDropdown();
|
||||
if (menuButtonOnClick) menuButtonOnClick();
|
||||
@ -157,6 +158,7 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
|
||||
: "cursor-pointer hover:bg-custom-background-80"
|
||||
} ${buttonClassName}`}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
isOpen ? closeDropdown() : openDropdown();
|
||||
if (menuButtonOnClick) menuButtonOnClick();
|
||||
|
Loading…
Reference in New Issue
Block a user