Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(panel): fix panel opening on non collapsible panel
Browse files Browse the repository at this point in the history
fix #233
  • Loading branch information
ocBruno committed Jan 21, 2020
1 parent 5274a20 commit b2ecdf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Panel/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Panel = (props: Props) => {
return (
<Card border={color}>
{title && (
<Card.Header onClick={() => setOpen(!open)} style={{ textAlign: 'left' }}>
<Card.Header onClick={() => collapsible && setOpen(!open)} style={{ textAlign: 'left' }}>
{title}
{collapsible && collapseIcon}
</Card.Header>
Expand Down

0 comments on commit b2ecdf4

Please sign in to comment.