In plain mdb, the height of the component is removed after the animation has ended. In react-mdb, the height of the component remains after the animation.
The mdb-react approach means that if you change the content of the collapsible element, it may overflow or not shrink to fit the content. Additionally, the documentation shows the react code on top of a sample that is (apparently) not running the react code, so differences in behavior have a very misleading representation in the documentation...
In both examples, open the collapsible comment and then click the "add content" button to double the content of the collapsible item. The red div is added so you can see where the other div is overflowing.
In plain mdb, the height of the component is removed after the animation has ended. In react-mdb, the height of the component remains after the animation.
The mdb-react approach means that if you change the content of the collapsible element, it may overflow or not shrink to fit the content. Additionally, the documentation shows the react code on top of a sample that is (apparently) not running the react code, so differences in behavior have a very misleading representation in the documentation...
See these examples:
No react: https://stackblitz.com/edit/github-ceeupc-jos1xg?file=index.html React: https://stackblitz.com/edit/github-ceeupc-xnziba?file=src%2FApp.tsx
In both examples, open the collapsible comment and then click the "add content" button to double the content of the collapsible item. The red div is added so you can see where the other div is overflowing.