Accordion Component Not Mounting Content as Expected #45160
Labels
component: accordion
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
Search keywords
Accordion Details, Accordion Details not mounting
Latest version
Steps to reproduce
Steps:
Current behavior
I am experiencing unexpected behaviour with the MUI component. According to the MUI documentation, accordion content is mounted in the DOM by default, even when collapsed, unless explicitly unmounted via unmountOnExit.
However, in my case, is not present in the DOM until its corresponding is expanded for the first time. I have explicitly set mountOnEnter={true} and unmountOnExit={false} on , but the details content does not appear in the DOM until expansion.
Expected behavior
According to the documentation, should be mounted in the DOM by default, regardless of expansion state, unless unmountOnExit is explicitly set to true. With mountOnEnter={true} and unmountOnExit={false}, the details content should always be present in the DOM.
The text was updated successfully, but these errors were encountered: