You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per documentation, setting the unmountOnExit to true on slotProps={{ transition: { unmountOnExit: true } }} should work but it doesn't.
I then found that TransitionProps={{ unmountOnExit: true }} worked!
Context
I tried to set the unmountOnExit: true on the transition property of the slotProps prop for the Accordion. I noticed the elements were not unmounting. I then noticed that there wasn't a specific slotProps prop found by my intelliSense. I googled and found this on stackoverflow: Removal of AccordianDetails component from DOM on collapse of material-ui Accordian
Related page
https://mui.com/material-ui/react-accordion/#performance
Kind of issue
Missing information
Issue description
As per documentation, setting the unmountOnExit to true on
slotProps={{ transition: { unmountOnExit: true } }}
should work but it doesn't.I then found that
TransitionProps={{ unmountOnExit: true }}
worked!Context
I tried to set the
unmountOnExit: true
on thetransition
property of theslotProps
prop for theAccordion
. I noticed the elements were not unmounting. I then noticed that there wasn't a specificslotProps
prop found by my intelliSense. I googled and found this on stackoverflow: Removal of AccordianDetails component from DOM on collapse of material-ui AccordianSearch keywords: Accordion, TransitionProps, slotProps, Docs
The text was updated successfully, but these errors were encountered: