Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix : close dropdown when clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
kasterra committed May 29, 2024
1 parent 7290c14 commit 1d8460e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/routes/_procted+/grade+/$lectureId+/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ const TableHeader = () => {
semester ? `?semester=${semester}` : ""
}`
);
setIsOpen((prev) => !prev);
}}
>
{lecture.title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ const TableHeader = () => {
navigate(
`/students/${params.lectureId}/${practice.id}/history`
);
setIsPracticeListOpen(false);
}}
>
{practice.title}
Expand All @@ -163,6 +164,7 @@ const TableHeader = () => {
onClick={() => {
if (problem.id !== -1)
setSearchParams({ problemId: problem.id.toString() });
setIsProblemListOpen(false);
}}
>
{problem.title}
Expand Down
1 change: 1 addition & 0 deletions app/routes/_procted+/students+/$lectureId+/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ const TableHeader = () => {
semester ? `?semester=${semester}` : ""
}`
);
setIsOpen((prev) => !prev);
}}
>
{lecture.title}
Expand Down

0 comments on commit 1d8460e

Please sign in to comment.