Skip to content

Commit

Permalink
[fix] : options model closes on space
Browse files Browse the repository at this point in the history
  • Loading branch information
vedant-jain03 committed Jan 31, 2023
1 parent bed406c commit 851dc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/dashboard/src/components/DropDown2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const DropDown2: FunctionComponent<DropDown2Props> = (props) => {
e.preventDefault();
}
}
if (e.key === " ") {
if (e.key === " " && search === "") {
toggleDropDown();
e.preventDefault();
}
Expand Down

0 comments on commit 851dc2a

Please sign in to comment.