Skip to content

Commit

Permalink
fix(side-panel): Filter out invalid DOM prop (#3080)
Browse files Browse the repository at this point in the history
Filter out the `openDirection` prop so it doesn't get forwarded to the `<button>` element.

[category:Components]
  • Loading branch information
NicholasBoll authored Dec 20, 2024
1 parent 8a1312a commit b005114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/react/side-panel/lib/SidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const ChildrenContainer = styled('div')<Pick<SidePanelProps, 'openWidth' | 'open
})
);

const ToggleButton = styled(TertiaryButton)<
const ToggleButton = styled(TertiaryButton, {shouldForwardProp: prop => prop !== 'openDirection'})<
TertiaryButtonProps & Pick<SidePanelProps, 'openDirection'>
>(
{
Expand Down

0 comments on commit b005114

Please sign in to comment.