diff --git a/apps/frontend/src/components/SearchBar.tsx b/apps/frontend/src/components/SearchBar.tsx index 3a1516ff7..42d370d1f 100644 --- a/apps/frontend/src/components/SearchBar.tsx +++ b/apps/frontend/src/components/SearchBar.tsx @@ -72,7 +72,6 @@ export function SearchBar() { isClearable={false} loadOptions={searchRessurs} loadingMessage={() => "Søker..."} - menuPortalTarget={document.body} noOptionsMessage={({ inputValue }) => inputValue.length < RESOURCE_SEARCH_TERM_LOWER_LENGTH_LIMIT ? "Skriv minst 3 tegn for å søke" diff --git a/apps/frontend/src/components/select/CustomSelectComponents.tsx b/apps/frontend/src/components/select/CustomSelectComponents.tsx index 233cdf69b..f889fc8ff 100644 --- a/apps/frontend/src/components/select/CustomSelectComponents.tsx +++ b/apps/frontend/src/components/select/CustomSelectComponents.tsx @@ -67,7 +67,6 @@ export function AsyncSearch< components={{ MenuList: CustomMenuList, ...properties.components }} isClearable loadingMessage={() => "Søker..."} - menuPortalTarget={document.body} styles={{ ...commonSelectOverwriteStyles, dropdownIndicator: (base) => ({ ...base, display: "none" }) }} /> ); @@ -153,7 +152,6 @@ export function BasicSelect< escapeClearsValue isClearable isSearchable - menuPortalTarget={document.body} placeholder={properties.placeholder ?? ""} styles={commonSelectOverwriteStyles} /> @@ -173,7 +171,6 @@ export function BasicCreatableSelect< escapeClearsValue isClearable isSearchable - menuPortalTarget={document.body} placeholder={properties.placeholder ?? ""} styles={commonSelectOverwriteStyles} />