Open lykaiowang opened 6 years ago
@lykaiowang sorry for lately reply, I will look into on it and thanks your contribution.
This bug is still present in
"react-bootstrap-table-next": "4.0.3",
"react-bootstrap-table2-editor": "1.4.0",
"react-bootstrap-table2-filter": "1.3.3",
"react-bootstrap-table2-overlay": "2.0.0",
"react-bootstrap-table2-paginator": "2.1.2",
"react-bootstrap-table2-toolkit": "2.1.3"
The index array which is passed to nonExpandable seems to have no effect on which rows can or cannot be expanded.
Also rowKey returned from expandColumnRenderer is always undefined and expandable is always true.
Version: 1.1.4
Context:
<BootstrapTable />
takes a configuration propexpandRow
expandRow
object takes a few keys, three of which arenonExpandable
andexpandColumnRenderer
, 'showExpandColumn`showExpandColumn
is a boolean that dictates whether or not Expand Indicators are shownnonExpandable
is an array ofkeyFields
s dictating which rows aren't expandableexpandColumnRenderer
is a rendering function that renders the Expand IndicatorIssue:
nonExpandable
rows. i.e. it renders for all rows, even if it isn't expandable.