Skip to content

Commit

Permalink
fix: fixed menu stuck when selecting an option
Browse files Browse the repository at this point in the history
  • Loading branch information
SPageot committed Mar 31, 2022
1 parent dd31f3d commit ee81666
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/form/SimpleSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ const SimpleSelect = withTheme(
}, [ref, ref.current]);

useEffect(() => {
if (inputValue && !searchInputValue) {
if (inputValue && !selectedOptions) {
onSearchClick();
}
}, [menuIsVisible]);
Expand Down Expand Up @@ -386,6 +386,7 @@ const SimpleSelect = withTheme(
};

const addInputMethodology = () => {
setSelectedOptions(null)
setInputValue(true);
};

Expand Down

0 comments on commit ee81666

Please sign in to comment.