Skip to content

Commit

Permalink
Fix hideSelectColumn not working in table header
Browse files Browse the repository at this point in the history
Fixes issue: AllenFang#1122
  • Loading branch information
JohnUiterwyk authored Mar 7, 2017
1 parent fcdbfde commit fcc7c81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ class TableHeader extends Component {
}

renderSelectRowHeader(rowCount, rowKey) {
if (this.props.customComponent) {
if (this.props.hideSelectColumn) {
return null;
} else if (this.props.customComponent) {
const CustomComponent = this.props.customComponent;
return (
<SelectRowHeaderColumn key={ rowKey } rowCount={ rowCount }>
Expand Down

0 comments on commit fcc7c81

Please sign in to comment.