From 87121d72ec22e8d0574444d567280e16f8de384c Mon Sep 17 00:00:00 2001 From: adamviktora Date: Tue, 30 Apr 2024 10:49:12 +0200 Subject: [PATCH] fix(SelectTypeaheadCreatable): close menu after creating option --- .../src/components/Select/examples/SelectTypeaheadCreatable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-core/src/components/Select/examples/SelectTypeaheadCreatable.tsx b/packages/react-core/src/components/Select/examples/SelectTypeaheadCreatable.tsx index f735605963b..7b0d9df194d 100644 --- a/packages/react-core/src/components/Select/examples/SelectTypeaheadCreatable.tsx +++ b/packages/react-core/src/components/Select/examples/SelectTypeaheadCreatable.tsx @@ -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);