Skip to content

Commit

Permalink
fix(collapsible): prevent trigger button from submiting form
Browse files Browse the repository at this point in the history
  • Loading branch information
maximevast committed Nov 2, 2023
1 parent 46878b8 commit 6f9b713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/andive/src/components/collapsible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const AndiveCollapsible = React.forwardRef<HTMLInputElement, AndiveCollapsiblePr

return (
<Collapsible {...props} data-state={open ? 'open' : 'closed'} ref={forwardedRef}>
<CollapsibleTrigger onClick={() => setOpen(open => !open)}>
<CollapsibleTrigger type="button" onClick={() => setOpen(open => !open)}>
<StyledTriggerWrapper>
{trigger}
<StyledIconWrapper>
Expand Down

0 comments on commit 6f9b713

Please sign in to comment.