Skip to content

Commit 09a3e9f

Browse files
committed
fix(Menu): incorrect prop passing
1 parent f388166 commit 09a3e9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/pickers/Menu/MenuButton.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ export function MenuButton({
121121
postfix,
122122
...props
123123
}: MenuButtonProps) {
124-
const { selectionIcon, isSelected, isSelectable, isDisabled } = props;
124+
const { selectionIcon, isSelected, isSelectable, isDisabled, ...rest } =
125+
props;
125126
const checkIcon =
126127
isSelectable && isSelected
127128
? getSelectionTypeIcon(selectionIcon)
@@ -135,7 +136,7 @@ export function MenuButton({
135136
};
136137

137138
return (
138-
<StyledButton {...props} mods={mods}>
139+
<StyledButton {...rest} mods={mods}>
139140
{checkIcon ? <div data-element="ButtonIcon">{checkIcon}</div> : null}
140141
{icon ? <div data-element="ButtonIcon">{icon}</div> : null}
141142
<Space gap="1x" placeContent="space-between" overflow="clip" width="100%">

0 commit comments

Comments
 (0)