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 authored and roboquat committed Feb 1, 2023
1 parent 739cae9 commit c656e91
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 c656e91

Please sign in to comment.