diff --git a/src/BootstrapTable.js b/src/BootstrapTable.js index af354a8e4..0a024b56b 100644 --- a/src/BootstrapTable.js +++ b/src/BootstrapTable.js @@ -1270,7 +1270,7 @@ BootstrapTable.propTypes = { Const.ROW_SELECT_MULTI ]), customComponent: PropTypes.func, - bgColor: PropTypes.string, + bgColor: PropTypes.oneOfType([ PropTypes.string, PropTypes.func ]), selected: PropTypes.array, onSelect: PropTypes.func, onSelectAll: PropTypes.func, diff --git a/src/TableBody.js b/src/TableBody.js index 034f64293..7b74de607 100644 --- a/src/TableBody.js +++ b/src/TableBody.js @@ -153,6 +153,7 @@ class TableBody extends Component { } const result = [