react-bootstrap-table2
react-bootstrap-table2 copied to clipboard
[Bug] Expand Indicator is Always Shown For All Rows
Version: 1.1.4
Context:
<BootstrapTable />takes a configuration propexpandRowexpandRowobject takes a few keys, three of which arenonExpandableandexpandColumnRenderer, 'showExpandColumn`showExpandColumnis a boolean that dictates whether or not Expand Indicators are shownnonExpandableis an array ofkeyFieldss dictating which rows aren't expandableexpandColumnRendereris a rendering function that renders the Expand Indicator
Issue:
- The Expand Indicator renders with out respecting
nonExpandablerows. i.e. it renders for all rows, even if it isn't expandable.
@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.