Skip to content

Commit

Permalink
fix(dropdownmenu): fix header visibility and extra margin issue (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson authored Oct 1, 2024
1 parent 486b2e7 commit c1b736c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/components/src/core/DropdownMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ const DropdownMenu = <
{...ClickAwayListenerProps}
>
<StyledDropdownMenuAutocompleteWrapper>
<StyledDropdownMenuHeader search={search}>
{title && <StyledHeaderTitle>{title}</StyledHeaderTitle>}
{headerComponentSlot && <>{headerComponentSlot}</>}
</StyledDropdownMenuHeader>
{(title || headerComponentSlot) && (
<StyledDropdownMenuHeader search={search}>
{title && <StyledHeaderTitle>{title}</StyledHeaderTitle>}
{headerComponentSlot && <>{headerComponentSlot}</>}
</StyledDropdownMenuHeader>
)}
{anchorEl && (
<Autocomplete
label={label}
Expand Down

0 comments on commit c1b736c

Please sign in to comment.