fix(ControlledAutocomplete): use option value as option key

This commit is contained in:
Ali BARIN
2022-12-04 21:16:16 +01:00
parent bd2f2cbf64
commit e451dd2262
2 changed files with 6 additions and 1 deletions

View File

@@ -96,6 +96,11 @@ function ControlledAutocomplete(
}}
ref={ref}
data-test={`${name}-autocomplete`}
renderOption={(optionProps, option) => (
<li {...optionProps} key={option.value.toString()}>
{option.label}
</li>
)}
/>
<FormHelperText