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
First off thanks for this component – came in handy in a pinch.
I have children components that have dropdowns that might spill over beyond the <Collapse /> parent component's height. The problem I'm encountering only happens when the initial render has isOpen={true}.
The inline style overflow: hidden is applied and remains on the component until you switch the state from isOpen={false}. In fact, once you toggle it yet again to isOpen={true} after being in the isOpen={false} state it does remove the overflow: hidden style with overflow: visible, which is what my child components require after the animation is complete.
The text was updated successfully, but these errors were encountered:
Hi Matt! I am glad the component works for you.
What version of the package are you using?
It would be very nice to provide an example for me to fully understand the issue. You can use the existing storybook project to provide a new story replicating your setup.
First off thanks for this component – came in handy in a pinch.
I have children components that have dropdowns that might spill over beyond the
<Collapse />
parent component's height. The problem I'm encountering only happens when the initial render hasisOpen={true}
.The inline style
overflow: hidden
is applied and remains on the component until you switch the state fromisOpen={false}
. In fact, once you toggle it yet again toisOpen={true}
after being in theisOpen={false}
state it does remove theoverflow: hidden
style withoverflow: visible
, which is what my child components require after the animation is complete.The text was updated successfully, but these errors were encountered: