Skip to content

Commit

Permalink
Merge pull request #2030 from CameronFletcher92/tableheader-fix
Browse files Browse the repository at this point in the history
[Table] Added key to selectall column in TableHeader. Addresses #2028
  • Loading branch information
oliviertassinari committed Nov 1, 2015
2 parents c66ff3d + f25ef9e commit edaf30f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/table/table-header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const TableHeader = React.createClass({
},

_getSelectAllCheckboxColumn(props) {
if (!this.props.displaySelectAll) return this._getCheckboxPlaceholder(props);
if (!this.props.displaySelectAll) return this._getCheckboxPlaceholder(props);

const checkbox =
<Checkbox
Expand All @@ -163,8 +163,9 @@ const TableHeader = React.createClass({
checked={this.props.selectAllSelected}
onCheck={this._onSelectAll} />;

const key = 'hpcb' + props.rowNumber;
return (
<TableHeaderColumn style={{width: 24}}>
<TableHeaderColumn key={key} style={{width: 24}}>
{checkbox}
</TableHeaderColumn>
);
Expand Down

0 comments on commit edaf30f

Please sign in to comment.