[#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) => { (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)