Skip to content

Commit

Permalink
fix(dropdown): merge valueItemContainerProps more intelligently
Browse files Browse the repository at this point in the history
fix #202
  • Loading branch information
aVileBroker committed Oct 18, 2020
1 parent 5cca7ef commit 74625e7
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,16 +423,19 @@ const Dropdown = ({
>
<Button
StyledContainer={StyledValueContainer}
containerProps={{
isOpen,
}}
id={`${name}-button-value`}
color={defaultedColor}
onClick={(e: React.MouseEvent) => e.preventDefault()}
onMouseDown={clickHandler}
variant={variant}
containerRef={valueContainerRef}
{...valueContainerProps}
containerProps={{
isOpen,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
...(valueContainerProps ? valueContainerProps.containerProps : {}),
}}
>
<StyledValueItem
{...valueItemProps}
Expand Down

0 comments on commit 74625e7

Please sign in to comment.