Merge pull request #1848 from RafaelTaranto/fix/autocomplete

LAM-1420 fix: autocomplete component rendering
This commit is contained in:
Rafael Taranto 2025-05-14 09:51:55 +01:00 committed by GitHub
commit f8a82bb84b
2 changed files with 14 additions and 16 deletions

View file

@ -81,8 +81,7 @@ const Autocomplete = ({
clearOnEscape clearOnEscape
isOptionEqualToValue={R.eqProps(valueProp)} isOptionEqualToValue={R.eqProps(valueProp)}
{...props} {...props}
renderInput={params => { renderInput={params => (
return (
<TextInput <TextInput
{...params} {...params}
autoFocus={autoFocus} autoFocus={autoFocus}
@ -93,8 +92,7 @@ const Autocomplete = ({
fullWidth={fullWidth} fullWidth={fullWidth}
textAlign={textAlign} textAlign={textAlign}
/> />
) )}
}}
renderOption={(iprops, props) => { renderOption={(iprops, props) => {
if (!props.warning && !props.warningMessage) if (!props.warning && !props.warningMessage)
return <li {...iprops}>{R.path([labelProp])(props)}</li> return <li {...iprops}>{R.path([labelProp])(props)}</li>

View file

@ -20,6 +20,7 @@ const TextInput = memo(
size, size,
bold, bold,
className, className,
inputProps,
InputProps, InputProps,
...props ...props
}) => { }) => {
@ -63,8 +64,7 @@ const TextInput = memo(
}, },
...InputProps, ...InputProps,
}, },
htmlInput: { style: { textAlign }, ...inputProps },
htmlInput: { style: { textAlign } },
}} }}
/> />
) )