diff --git a/src/components/Attendees/PeopleSearch.tsx b/src/components/Attendees/PeopleSearch.tsx index 1a08a1b..01bfe98 100644 --- a/src/components/Attendees/PeopleSearch.tsx +++ b/src/components/Attendees/PeopleSearch.tsx @@ -54,7 +54,7 @@ export function PeopleSearch({ }, 300); return () => clearTimeout(delayDebounceFn); - }, [query]); + }, [query, objectTypes]); return ( { if (e.key === "Enter" && onToggleEventPreview) { e.preventDefault(); @@ -103,6 +104,7 @@ export function PeopleSearch({ slotProps={{ input: { ...params.InputProps, + autoComplete: "new-password", startAdornment: ( <> )} renderOption={(props, option) => { - if (selectedUsers.find((u) => u.email === option.email)) return; + if (selectedUsers.find((u) => u.email === option.email)) return null; + const { key, ...otherProps } = props as any; return (