fix(frontend): resolve label updates

This commit is contained in:
yassinedorbozgithub 2025-06-09 10:59:34 +01:00
parent 9aea582915
commit 3a643b0e4b

View File

@ -52,12 +52,15 @@ const AutoCompleteSelect = <
FreeSolo extends boolean | undefined = false,
>(
{
label,
value,
options = [],
idKey = "id",
labelKey,
multiple,
onSearch,
error,
helperText,
isOptionEqualToValue = (option, value) =>
option?.[idKey] === value?.[idKey],
getOptionLabel = (option) => option?.[String(labelKey)] || option?.[idKey],
@ -154,7 +157,10 @@ const AutoCompleteSelect = <
renderInput={(props) => (
<Input
{...props}
label={label}
onChange={(e) => handleSearch(e.target.value)}
error={error}
helperText={helperText}
InputProps={{
...props.InputProps,
endAdornment: (