[#420] passed a new param to people search to customize slotprops (#424)

* [#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:
Camille Moussu
2025-12-17 07:29:01 +01:00
committed by GitHub
parent a28f41fab9
commit 89103b5787
2 changed files with 116 additions and 48 deletions
+20
View File
@@ -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,