8000 fix(CAccordion): add missing type="button" · athulchandroth/coreui-react@0bd6d38 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0bd6d38

Browse files
committed
fix(CAccordion): add missing type="button"
1 parent ae32c88 commit 0bd6d38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/coreui-react/src/components/accordion/CAccordionButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ export const CAccordionButton = forwardRef<HTMLButtonElement, CAccordionButtonPr
1919

2020
return (
2121
<button
22+
type="button"
2223
className={_className}
23-
{...rest}
2424
aria-expanded={!visible}
2525
onClick={() => setVisible(!visible)}
26+
{...rest}
2627
ref={ref}
2728
>
2829
{children}

0 commit comments

Comments
 (0)
0