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
It looks like the disableAnimation condition in the AccordionItem component is returning early and skipping the keepContentMounted check. As a result, the isOpen state isn’t being used to determine whether the content should remain mounted or be unmounted when the accordion item is closed.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Add an Accordion component to your UI.
Set the disableAnimation prop to true on the Accordion.
Leave keepContentMounted unset (it defaults to false).
Observe that when an accordion item is closed, its children are not unmounted as expected.
Expected behavior
As a developer, I expect the disableAnimation prop to not have an effect on the keepContentMounted prop.
Screenshots or Videos
Operating System Version
Windows
Browser
Chrome
The text was updated successfully, but these errors were encountered:
HeroUI Version
2.7.4
Describe the bug
It looks like the
disableAnimation
condition in theAccordionItem
component is returning early and skipping thekeepContentMounted
check. As a result, theisOpen
state isn’t being used to determine whether the content should remain mounted or be unmounted when the accordion item is closed.Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
disableAnimation
prop to true on the Accordion.keepContentMounted
unset (it defaults to false).Expected behavior
As a developer, I expect the
disableAnimation
prop to not have an effect on thekeepContentMounted
prop.Screenshots or Videos
Operating System Version
Windows
Browser
Chrome
The text was updated successfully, but these errors were encountered: