Skip to content

Commit

Permalink
fix #278
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Feb 20, 2016
1 parent 4578e3d commit 226e60d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,11 @@ BootstrapTable.propTypes = {
pagination: React.PropTypes.bool,
searchPlaceholder: React.PropTypes.string,
selectRow: React.PropTypes.shape({
mode: React.PropTypes.string,
mode: React.PropTypes.oneOf([
Const.ROW_SELECT_NONE,
Const.ROW_SELECT_SINGLE,
Const.ROW_SELECT_MULTI
]),
bgColor: React.PropTypes.string,
selected: React.PropTypes.array,
onSelect: React.PropTypes.func,
Expand Down
4 changes: 2 additions & 2 deletions src/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ class TableBody extends React.Component{
}

_isSelectRowDefined(){
return this.props.selectRow.mode == Const.ROW_SELECT_SINGLE ||
this.props.selectRow.mode == Const.ROW_SELECT_MULTI;
return this.props.selectRow.mode === Const.ROW_SELECT_SINGLE ||
this.props.selectRow.mode === Const.ROW_SELECT_MULTI;
}
}
TableBody.propTypes = {
Expand Down

0 comments on commit 226e60d

Please sign in to comment.