[joy-ui][Accordion] The expand button acts as type="submit" by default #39530
Labels
bug 🐛
Something doesn't work
component: accordion
This is the name of the generic UI component, not the React module!
package: joy-ui
Specific to @mui/joy
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
Basic working code:
Steps:
Current behavior 😯
It works the same as using AccordionSummary's slot prop for button type='Submit'.
Expected behavior 🤔
It should work the same as using the slotprop of AccordionSummary for button type='button'.
Context 🔦
I created a settings page for the user. Settings page information is contained within form elements, and accordion elements are used in the middle of the page to provide detailed guide information. When I used the accordion component, I thought the accordion component would not interact with the form elements. But it was.
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: