Skip to content

Commit

Permalink
Merge pull request #1147 from navikt/fix_modal_portal_bugs
Browse files Browse the repository at this point in the history
Remove explicit menuPortalTarget for react-select
  • Loading branch information
johannbm authored Aug 30, 2023
2 parents f24d9f5 + acd6b9b commit 3291042
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion apps/frontend/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" }) }}
/>
);
Expand Down Expand Up @@ -153,7 +152,6 @@ export function BasicSelect<
escapeClearsValue
isClearable
isSearchable
menuPortalTarget={document.body}
placeholder={properties.placeholder ?? ""}
styles={commonSelectOverwriteStyles}
/>
Expand All @@ -173,7 +171,6 @@ export function BasicCreatableSelect<
escapeClearsValue
isClearable
isSearchable
menuPortalTarget={document.body}
placeholder={properties.placeholder ?? ""}
styles={commonSelectOverwriteStyles}
/>
Expand Down

0 comments on commit 3291042

Please sign in to comment.