Suppose I have a form with an Accordion component nested inside.
When I expand or collapse using the accordion's header, the form will automatically be submitted.
This is because of the <button> element inside AccordionItem has no type attribute specified.
Possible fix:
Set the button type attribute inside the AccordionHeader as type="button"
Problem:
Suppose I have a form with an
Accordion
component nested inside. When I expand or collapse using the accordion's header, the form will automatically be submitted. This is because of the<button>
element insideAccordionItem
has notype
attribute specified.Possible fix:
Set the button type attribute inside the
AccordionHeader
astype="button"