react-css-collapse
react-css-collapse copied to clipboard
Transition height on Collapse when it is open and the content changes
Would love a way to forceMeasure boolean prop to force measuring the content with each height.
Currently a change in the content's height would not update the height.
Hi @ConneXNL!
The height is re-measured before transition start to create a realistic transition. The height is re-measured every time isOpen changes but not when content inside Collapse changes. When a Collapse is open and the transition finished we set the height to auto. This way it is possible to add / remove content inside Collapse and the height will adjust.
If i understand you correctly you would like to transition height on Collapse when it is open and the content changes?
If i understand you correctly you would like to transition height on Collapse when it is open and the content changes?
yup!
I have same issue :(