react-css-collapse icon indicating copy to clipboard operation
react-css-collapse copied to clipboard

Transition height on Collapse when it is open and the content changes

Open jrmyio opened this issue 5 years ago • 3 comments

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.

jrmyio avatar Nov 17 '19 23:11 jrmyio

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?

torleifhalseth avatar Jan 08 '20 09:01 torleifhalseth

If i understand you correctly you would like to transition height on Collapse when it is open and the content changes?

yup!

jrmyio avatar Jan 13 '20 08:01 jrmyio

I have same issue :(

eli8levit avatar Feb 10 '21 12:02 eli8levit