react-bootstrap-table / react-bootstrap-table2

Next Generation of react-bootstrap-table
https://react-bootstrap-table.github.io/react-bootstrap-table2/
MIT License
1.27k stars 431 forks source link

Add new prop to disable css transitions on expandable rows #1772

Open dalmau opened 2 years ago

dalmau commented 2 years ago

Added new boolean prop "cssTransitions" to keep rows always expanded in the scenario where you want that all the table is expanded by default.

The default behaviour makes css transition closing and opening the row if the header is clicked, loosing scroll position of the table if it's embedded on a fixed height container. If the new prop is set to false the component CSSTransition won't be rendered.