Skip to content

Commit b48ca74

Browse files
committed
fix eslint
1 parent 83c3737 commit b48ca74

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/BootstrapTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ class BootstrapTable extends Component {
534534
x={ this.state.x }
535535
y={ this.state.y }
536536
withoutTabIndex={ this.props.withoutTabIndex }
537-
hideRowOnExpand={hideRowOnExpand}
537+
hideRowOnExpand={ hideRowOnExpand }
538538
onEditCell={ this.handleEditCell } />
539539
{
540540
tableFooter

src/TableBody.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class TableBody extends Component {
189189
onExpandRow={ this.handleClickCell }
190190
unselectableRow={ disable }
191191
style={ trStyle }
192-
hidden={isExpanding && hideRowOnExpand}
192+
hidden={ isExpanding && hideRowOnExpand }
193193
dbClickToEdit={ cellEdit.mode === Const.CELL_EDIT_DBCLICK } >
194194
{ this.props.expandColumnOptions.expandColumnVisible &&
195195
this.props.expandColumnOptions.expandColumnBeforeSelectColumn &&
@@ -559,6 +559,6 @@ TableBody.propTypes = {
559559
y: PropTypes.number,
560560
onNavigateCell: PropTypes.func,
561561
withoutTabIndex: PropTypes.bool,
562-
hideRowOnExpand: PropTypes.bool,
562+
hideRowOnExpand: PropTypes.bool
563563
};
564564
export default TableBody;

src/TableRow.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class TableRow extends Component {
7878

7979
render() {
8080
this.clickNum = 0;
81-
const { selectRow, row, isSelected, className, index } = this.props;
81+
const { selectRow, row, isSelected, className, index, hidden } = this.props;
8282
let { style } = this.props;
8383
let backgroundColor = null;
8484
let selectRowClass = null;
@@ -110,7 +110,7 @@ class TableRow extends Component {
110110
onMouseOver={ this.rowMouseOver }
111111
onMouseOut={ this.rowMouseOut }
112112
onClick={ this.rowClick }
113-
hidden={this.props.hidden}
113+
hidden={ hidden }
114114
onDoubleClick={ this.rowDoubleClick }>{ this.props.children }</tr>
115115
);
116116
}
@@ -128,11 +128,11 @@ TableRow.propTypes = {
128128
onRowMouseOut: PropTypes.func,
129129
onRowMouseOver: PropTypes.func,
130130
unselectableRow: PropTypes.bool,
131-
hidden: PropTypes.bool,
131+
hidden: PropTypes.bool
132132
};
133133
TableRow.defaultProps = {
134134
onRowClick: undefined,
135135
onRowDoubleClick: undefined,
136-
hidden: false,
136+
hidden: false
137137
};
138138
export default TableRow;

0 commit comments

Comments
 (0)