Skip to content

Commit

Permalink
Remove prevent default and add button type : 'button'
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Oct 31, 2024
1 parent 20662e4 commit 909fb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/accordion/Accordion.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export const Accordion = ({ title, id, style, children }: AccordionProps) => {
| React.MouseEvent<HTMLButtonElement>
| React.KeyboardEvent<HTMLButtonElement>,
) => {
e.preventDefault();
setIsOpen((prev) => !prev);
};

return (
<Box style={{ width: '100%', height: 'auto' }}>
<h3 style={{ margin: 0 }}>
<AccordionHeader
type="button"
id={`Accordion-header-${id}`}
onClick={handleToggleContent}
aria-controls={id}
Expand Down

0 comments on commit 909fb78

Please sign in to comment.