Skip to content

Commit 8903813

Browse files
authored
check for onExpandedChange before changing internal state, button type on Accordion (#124)
1 parent ac6d727 commit 8903813

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Accordion.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export const Accordion = memo(
9090
aria-expanded={value}
9191
aria-controls={accordionId}
9292
onClick={onExtendButtonClick}
93+
type="button"
9394
>
9495
{label}
9596
</button>

0 commit comments

Comments
 (0)