initialStyle not working
Jacint-Magyar opened this issue · 3 comments
Jacint-Magyar commented
initialStyle prop not applied on Collapse.
I want to set initial height instead of the default 0, when it's NOT open. So it would appear partially open.
I assumed initialStyle is for this use case as it would be very useful.
nkbt commented
It is not really necessary. Just do not ever close Collapse. Keep it open and just change your content height. Collapse will smoothly follow
nkbt commented
InitialStyle is not what you think it is.
See notes:
initially opened Collapse elements will be statically rendered with no animation. You can override this behaviour by using initialStyle prop
Jacint-Magyar commented
Thank you. It works if i keep it open and only change height.