Skip to content

Commit

Permalink
fix(SelectTypeaheadCreatable): close menu after creating option
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed May 6, 2024
1 parent 2848912 commit 87121d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const SelectTypeaheadCreatable: React.FunctionComponent = () => {
}
setSelected(filterValue);
setFilterValue('');
resetActiveAndFocusedItem();
closeMenu();
} else {
const optionText = selectOptions.find((option) => option.value === value)?.children;
selectOption(value, optionText as string);
Expand Down

0 comments on commit 87121d7

Please sign in to comment.