Skip to content

Commit

Permalink
feat(input-autocomplete): dont close popover on input click (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
reme3d2y committed Dec 29, 2020
1 parent fb98d10 commit 5b49e54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/select/src/components/base-select/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ export const BaseSelect = forwardRef(
};

const handleFieldClick = () => {
toggleMenu();
if (!autocomplete || !open) {
toggleMenu();
}
};

const handleNativeSelectChange = useCallback(
Expand Down

0 comments on commit 5b49e54

Please sign in to comment.