Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Dec 12, 2017
1 parent 83c3737 commit b48ca74
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ class BootstrapTable extends Component {
x={ this.state.x }
y={ this.state.y }
withoutTabIndex={ this.props.withoutTabIndex }
hideRowOnExpand={hideRowOnExpand}
hideRowOnExpand={ hideRowOnExpand }
onEditCell={ this.handleEditCell } />
{
tableFooter
Expand Down
4 changes: 2 additions & 2 deletions src/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class TableBody extends Component {
onExpandRow={ this.handleClickCell }
unselectableRow={ disable }
style={ trStyle }
hidden={isExpanding && hideRowOnExpand}
hidden={ isExpanding && hideRowOnExpand }
dbClickToEdit={ cellEdit.mode === Const.CELL_EDIT_DBCLICK } >
{ this.props.expandColumnOptions.expandColumnVisible &&
this.props.expandColumnOptions.expandColumnBeforeSelectColumn &&
Expand Down Expand Up @@ -559,6 +559,6 @@ TableBody.propTypes = {
y: PropTypes.number,
onNavigateCell: PropTypes.func,
withoutTabIndex: PropTypes.bool,
hideRowOnExpand: PropTypes.bool,
hideRowOnExpand: PropTypes.bool
};
export default TableBody;
8 changes: 4 additions & 4 deletions src/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class TableRow extends Component {

render() {
this.clickNum = 0;
const { selectRow, row, isSelected, className, index } = this.props;
const { selectRow, row, isSelected, className, index, hidden } = this.props;
let { style } = this.props;
let backgroundColor = null;
let selectRowClass = null;
Expand Down Expand Up @@ -110,7 +110,7 @@ class TableRow extends Component {
onMouseOver={ this.rowMouseOver }
onMouseOut={ this.rowMouseOut }
onClick={ this.rowClick }
hidden={this.props.hidden}
hidden={ hidden }
onDoubleClick={ this.rowDoubleClick }>{ this.props.children }</tr>
);
}
Expand All @@ -128,11 +128,11 @@ TableRow.propTypes = {
onRowMouseOut: PropTypes.func,
onRowMouseOver: PropTypes.func,
unselectableRow: PropTypes.bool,
hidden: PropTypes.bool,
hidden: PropTypes.bool
};
TableRow.defaultProps = {
onRowClick: undefined,
onRowDoubleClick: undefined,
hidden: false,
hidden: false
};
export default TableRow;

0 comments on commit b48ca74

Please sign in to comment.