Skip to content

Commit

Permalink
stop button click event from propagating (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
mccarthyaaron authored Aug 19, 2024
1 parent 3c138ec commit d6d6580
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ const MonthlyWorkloadViewExpanded: React.FC<MonthlyWorkloadViewExpandedProps> =

return (
<Popover open={isOpen} align="top" ref={popoverRef}>
<button className={styles.showMoreItems} onClick={() => setIsOpen((prev) => !prev)}>
<button
className={styles.showMoreItems}
onClick={(e) => {
e.stopPropagation();
setIsOpen((prev) => !prev);
}}>
{t('countMore', '{{count}} more', { count })}
</button>
<PopoverContent>
Expand Down

0 comments on commit d6d6580

Please sign in to comment.