diff --git a/src/mantine-core/src/components/Select/Select.tsx b/src/mantine-core/src/components/Select/Select.tsx index 8b1c20dfa3e..ba83158634b 100644 --- a/src/mantine-core/src/components/Select/Select.tsx +++ b/src/mantine-core/src/components/Select/Select.tsx @@ -181,10 +181,10 @@ export const Select = factory((_props, ref) => { setSearch(''); } - if (typeof value === 'string' && optionsLockup[value]) { - setSearch(optionsLockup[value].label); + if (typeof value === 'string' && selectedOption) { + setSearch(selectedOption.label); } - }, [value, optionsLockup]); + }, [value, selectedOption]); const clearButton = clearable && !!_value && !disabled && !readOnly && (