Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Jul 18, 2023
1 parent 6d2f7ab commit 12c2d86
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/ui/src/components/library/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ const Autocomplete = <
clearOnBlur,
handleHomeEndKeys
}: AutocompleteProps<T, Multiple, DisableClearable, FreeSolo>) => {
const PopperMy = function (props: any) {
return <PopperStyled {...props} />
}

return (
<AutocompleteWrapper className={className}>
<AutocompleteMui
Expand All @@ -92,14 +88,15 @@ const Autocomplete = <
renderOption={renderOption}
popupIcon={<HiOutlineChevronDown />}
renderInput={renderInput}
PopperComponent={PopperMy}
PopperComponent={PopperStyled}
/>
</AutocompleteWrapper>
)
}

const PopperStyled = styled(Popper)`
margin-top: 0.75rem !important;
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
.MuiPaper-root {
border-radius: ${theme.custom.borderRadius};
Expand Down

0 comments on commit 12c2d86

Please sign in to comment.