Skip to content

Commit

Permalink
Merge pull request #160 from LensArt/add_class_on_selection
Browse files Browse the repository at this point in the history
add a select class on selection of a row
  • Loading branch information
AllenFang committed Dec 1, 2015
2 parents b43c2f0 + 7185803 commit ff06fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TableRow extends React.Component{
style:{
backgroundColor: this.props.isSelected?this.props.selectRow.bgColor:null
},
className:this.props.className||''
className:(this.props.isSelected && this.props.selectRow.className ? this.props.selectRow.className : '') + (this.props.className||'')
};

if(this.props.selectRow && !this.props.enableCellEdit &&
Expand Down

0 comments on commit ff06fcd

Please sign in to comment.