From 3c62c7fafafc2ec67d41cc30d09f5ec29cc8a53d Mon Sep 17 00:00:00 2001 From: Ugo Palatucci Date: Wed, 31 Jul 2024 15:52:56 +0200 Subject: [PATCH] CNV-45428: Fix inlinefilterselect onselect --- src/utils/components/FilterSelect/InlineFilterSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/components/FilterSelect/InlineFilterSelect.tsx b/src/utils/components/FilterSelect/InlineFilterSelect.tsx index fa02baf33..1c6e78c56 100644 --- a/src/utils/components/FilterSelect/InlineFilterSelect.tsx +++ b/src/utils/components/FilterSelect/InlineFilterSelect.tsx @@ -53,6 +53,7 @@ const InlineFilterSelect: FC = ({ } setIsOpen(false); setFocusedItemIndex(null); + setSelected(value); }; const getOptionComponent = (opt: EnhancedSelectOptionProps) => @@ -123,7 +124,6 @@ const InlineFilterSelect: FC = ({ id={`select-inline-filter-${option.value?.replace(' ', '-')}`} isFocused={focusedItemIndex === index} key={option.value} - onClick={() => setSelected(option.value)} value={option.value} {...option} >