[#554] removed people icon on adding people chips and removed cross (#609)

This commit is contained in:
Camille Moussu
2026-03-05 14:39:02 +01:00
committed by GitHub
parent 81f96288d8
commit 0f69e9df18
+9 -10
View File
@@ -161,14 +161,13 @@ export function PeopleSearch({
(params: AutocompleteRenderInputParams) => {
const inputProps = {
...params.InputProps,
startAdornment: (
<>
<PeopleOutlineOutlinedIcon
fontSize="small"
sx={{ mr: 1, color: "action.active" }}
/>
{params.InputProps.startAdornment}
</>
startAdornment: params.InputProps.startAdornment ? (
params.InputProps.startAdornment
) : (
<PeopleOutlineOutlinedIcon
fontSize="small"
sx={{ mr: 1, color: "action.active" }}
/>
),
endAdornment: (
<>
@@ -309,8 +308,8 @@ export function PeopleSearch({
},
}}
// When render input is custom, the adornments should be handled by the custom component
forcePopupIcon={!customRenderInput}
disableClearable={!!customRenderInput}
forcePopupIcon={false}
disableClearable
renderInput={(params) =>
customRenderInput
? customRenderInput(params, query, setQuery)