Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Accordion TransitionProps vs slotProps.transition #41513

Closed
HugoDorfling opened this issue Mar 16, 2024 · 0 comments
Closed

[docs] Accordion TransitionProps vs slotProps.transition #41513

HugoDorfling opened this issue Mar 16, 2024 · 0 comments
Labels
support: docs-feedback Feedback from documentation page

Comments

@HugoDorfling
Copy link

HugoDorfling commented Mar 16, 2024

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 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

Search keywords: Accordion, TransitionProps, slotProps, Docs

@HugoDorfling HugoDorfling added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Mar 16, 2024
@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support: docs-feedback Feedback from documentation page
Projects
None yet
Development

No branches or pull requests

1 participant