* [#420] passed a new param to people search to customize slotprops * Added back function lost in rebase --------- Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
@@ -233,6 +233,26 @@ export default function SearchBar() {
|
||||
}}
|
||||
objectTypes={["user", "contact"]}
|
||||
onToggleEventPreview={() => {}}
|
||||
customSlotProps={{
|
||||
popper: {
|
||||
anchorEl: containerRef.current,
|
||||
placement: "bottom-start",
|
||||
sx: {
|
||||
minWidth: searchWidth,
|
||||
"& .MuiPaper-root": {
|
||||
width: "100%",
|
||||
},
|
||||
},
|
||||
modifiers: [
|
||||
{
|
||||
name: "offset",
|
||||
options: {
|
||||
offset: [0, 8],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
}}
|
||||
customRenderInput={(
|
||||
params: AutocompleteRenderInputParams,
|
||||
query: string,
|
||||
|
||||
Reference in New Issue
Block a user