react-bootstrap-table-next
Advanced tools
Comparing version
@@ -64,8 +64,9 @@ 'use strict'; | ||
var result = true; | ||
if (onSelect) { | ||
var row = _operators2.default.getRowByRowId(data, keyField, rowKey); | ||
result = onSelect(row, checked, rowIndex, e); | ||
} | ||
_this.setState(function () { | ||
var result = true; | ||
if (onSelect) { | ||
var row = _operators2.default.getRowByRowId(data, keyField, rowKey); | ||
result = onSelect(row, checked, rowIndex, e); | ||
} | ||
if (result === true || result === undefined) { | ||
@@ -110,10 +111,10 @@ if (mode === ROW_SELECT_SINGLE) { | ||
var result = void 0; | ||
if (onSelectAll) { | ||
result = onSelectAll(!isUnSelect, _operators2.default.getSelectedRows(data, keyField, isUnSelect ? _this.state.selected : currSelected), e); | ||
if (Array.isArray(result)) { | ||
currSelected = result; | ||
} | ||
} | ||
_this.setState(function () { | ||
var result = void 0; | ||
if (onSelectAll) { | ||
result = onSelectAll(!isUnSelect, _operators2.default.getSelectedRows(data, keyField, isUnSelect ? _this.state.selected : currSelected), e); | ||
if (Array.isArray(result)) { | ||
currSelected = result; | ||
} | ||
} | ||
return { selected: currSelected }; | ||
@@ -120,0 +121,0 @@ }); |
@@ -46,4 +46,3 @@ 'use strict'; | ||
onExternalFilter = props.onExternalFilter, | ||
expandRow = props.expandRow, | ||
bootstrap4 = props.bootstrap4; | ||
expandRow = props.expandRow; | ||
@@ -81,3 +80,2 @@ | ||
index: i, | ||
bootstrap4: bootstrap4, | ||
key: column.dataField, | ||
@@ -109,6 +107,5 @@ column: column, | ||
className: _propTypes2.default.string, | ||
expandRow: _propTypes2.default.object, | ||
bootstrap4: _propTypes2.default.bool | ||
expandRow: _propTypes2.default.object | ||
}; | ||
exports.default = Header; |
@@ -60,3 +60,3 @@ 'use strict'; | ||
e.stopPropagation(); | ||
onRowExpand(rowKey, !expanded, rowIndex, e); | ||
@@ -63,0 +63,0 @@ } |
{ | ||
"name": "react-bootstrap-table-next", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Next generation of react-bootstrap-table", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
802183
-0.06%9403
-0.05%