Skip to content

Commit 851dc2a

Browse files
committed
[fix] : options model closes on space
1 parent bed406c commit 851dc2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dashboard/src/components/DropDown2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const DropDown2: FunctionComponent<DropDown2Props> = (props) => {
9999
e.preventDefault();
100100
}
101101
}
102-
if (e.key === " ") {
102+
if (e.key === " " && search === "") {
103103
toggleDropDown();
104104
e.preventDefault();
105105
}

0 commit comments

Comments
 (0)