Skip to content

Commit 599d2e2

Browse files
committed
Make clearing also close the quarter menu
1 parent 75e80a9 commit 599d2e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/src/pages/RoadmapPage/Quarter.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ const Quarter: FC<QuarterProps> = ({ year, yearIndex, quarterIndex, data }) => {
9999
<Button
100100
variant={buttonVariant}
101101
className="quarter-menu-btn red-menu-btn"
102-
onClick={() => dispatch(clearQuarter({ yearIndex: yearIndex, quarterIndex: quarterIndex }))}
102+
onClick={() => {
103+
dispatch(clearQuarter({ yearIndex: yearIndex, quarterIndex: quarterIndex }));
104+
setShowQuarterMenu(false);
105+
}}
103106
>
104107
Clear
105108
</Button>

0 commit comments

Comments
 (0)