Snippet
<Collapse
in={expanded}
onTransitionEnd={() => console.log('finished')}
>
<div>foo</div>
</Collapse>
Error Detection
The callback function (onTransitionEnd) is not triggered after the collapse animation completes.
What would be the correct approach to resolve this issue?