diff --git a/src/components/Combobox/ComboboxProvider.tsx b/src/components/Combobox/ComboboxProvider.tsx index b62f0366a..7ec3ca90c 100644 --- a/src/components/Combobox/ComboboxProvider.tsx +++ b/src/components/Combobox/ComboboxProvider.tsx @@ -137,14 +137,14 @@ export const ComboboxProvider = ({ (value: SetStateAction>) => { setSelectedValues(values => { const newValue = typeof value === "function" ? value(values) : value; - + onSelectProp(newValue); if (inputRef.current) { inputRef.current.value = newValue.join(","); } return newValue; }); }, - [inputRef] + [inputRef, onSelectProp] ); useEffect(() => {