fix: notification card snooze (#3598)
* fix: resolved event propagation issue with notification card snooze button * fix: resolved event propagation issue with notification card snooze button
This commit is contained in:
parent
e69fcd410c
commit
4a145f7a06
2 changed files with 6 additions and 6 deletions
|
|
@ -105,7 +105,8 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
|
|||
<button
|
||||
ref={setReferenceElement}
|
||||
type="button"
|
||||
onClick={() => {
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
openDropdown();
|
||||
if (menuButtonOnClick) menuButtonOnClick();
|
||||
}}
|
||||
|
|
@ -121,7 +122,8 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
|
|||
<button
|
||||
ref={setReferenceElement}
|
||||
type="button"
|
||||
onClick={() => {
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
openDropdown();
|
||||
if (menuButtonOnClick) menuButtonOnClick();
|
||||
}}
|
||||
|
|
@ -145,7 +147,8 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
|
|||
? "cursor-not-allowed text-custom-text-200"
|
||||
: "cursor-pointer hover:bg-custom-background-80"
|
||||
} ${buttonClassName}`}
|
||||
onClick={() => {
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
openDropdown();
|
||||
if (menuButtonOnClick) menuButtonOnClick();
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue