This commit is contained in:
@@ -161,14 +161,13 @@ export function PeopleSearch({
|
|||||||
(params: AutocompleteRenderInputParams) => {
|
(params: AutocompleteRenderInputParams) => {
|
||||||
const inputProps = {
|
const inputProps = {
|
||||||
...params.InputProps,
|
...params.InputProps,
|
||||||
startAdornment: (
|
startAdornment: params.InputProps.startAdornment ? (
|
||||||
<>
|
params.InputProps.startAdornment
|
||||||
<PeopleOutlineOutlinedIcon
|
) : (
|
||||||
fontSize="small"
|
<PeopleOutlineOutlinedIcon
|
||||||
sx={{ mr: 1, color: "action.active" }}
|
fontSize="small"
|
||||||
/>
|
sx={{ mr: 1, color: "action.active" }}
|
||||||
{params.InputProps.startAdornment}
|
/>
|
||||||
</>
|
|
||||||
),
|
),
|
||||||
endAdornment: (
|
endAdornment: (
|
||||||
<>
|
<>
|
||||||
@@ -309,8 +308,8 @@ export function PeopleSearch({
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
// When render input is custom, the adornments should be handled by the custom component
|
// When render input is custom, the adornments should be handled by the custom component
|
||||||
forcePopupIcon={!customRenderInput}
|
forcePopupIcon={false}
|
||||||
disableClearable={!!customRenderInput}
|
disableClearable
|
||||||
renderInput={(params) =>
|
renderInput={(params) =>
|
||||||
customRenderInput
|
customRenderInput
|
||||||
? customRenderInput(params, query, setQuery)
|
? customRenderInput(params, query, setQuery)
|
||||||
|
|||||||
Reference in New Issue
Block a user