Skip to content

Commit

Permalink
assign key prop on expand column
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Oct 16, 2017
1 parent 0d4f50e commit 2834df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ class TableHeader extends Component {
rows[0].push( [
this.props.expandColumnVisible &&
this.props.expandColumnBeforeSelectColumn &&
<ExpandRowHeaderColumn rowCount={ rowCount + 1 }/>
<ExpandRowHeaderColumn key='expandCol' rowCount={ rowCount + 1 }/>
], [
this.renderSelectRowHeader(rowCount + 1, rowKey++)
], [
this.props.expandColumnVisible &&
!this.props.expandColumnBeforeSelectColumn &&
<ExpandRowHeaderColumn rowCount={ rowCount + 1 }/>
<ExpandRowHeaderColumn key='expandCol' rowCount={ rowCount + 1 }/>
]);

React.Children.forEach(this.props.children, (elm) => {
Expand Down

0 comments on commit 2834df0

Please sign in to comment.