From 6bed841e796b979254e86c665b90beb0d91d2f4b Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Wed, 14 May 2025 09:45:57 +0100 Subject: [PATCH] fix: autocomplete component rendering --- .../components/inputs/base/Autocomplete.jsx | 26 +++++++++---------- .../src/components/inputs/base/TextInput.jsx | 4 +-- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/packages/admin-ui/src/components/inputs/base/Autocomplete.jsx b/packages/admin-ui/src/components/inputs/base/Autocomplete.jsx index 981a793c..5769c53b 100644 --- a/packages/admin-ui/src/components/inputs/base/Autocomplete.jsx +++ b/packages/admin-ui/src/components/inputs/base/Autocomplete.jsx @@ -81,20 +81,18 @@ const Autocomplete = ({ clearOnEscape isOptionEqualToValue={R.eqProps(valueProp)} {...props} - renderInput={params => { - return ( - - ) - }} + renderInput={params => ( + + )} renderOption={(iprops, props) => { if (!props.warning && !props.warningMessage) return
  • {R.path([labelProp])(props)}
  • diff --git a/packages/admin-ui/src/components/inputs/base/TextInput.jsx b/packages/admin-ui/src/components/inputs/base/TextInput.jsx index 3736d7d1..c4680231 100644 --- a/packages/admin-ui/src/components/inputs/base/TextInput.jsx +++ b/packages/admin-ui/src/components/inputs/base/TextInput.jsx @@ -20,6 +20,7 @@ const TextInput = memo( size, bold, className, + inputProps, InputProps, ...props }) => { @@ -63,8 +64,7 @@ const TextInput = memo( }, ...InputProps, }, - - htmlInput: { style: { textAlign } }, + htmlInput: { style: { textAlign }, ...inputProps }, }} /> )