react-bootstrap-table-next
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -83,2 +83,11 @@ 'use strict'; | ||
}); | ||
exposedAPIEmitter.on('get.filtered.rows', function (payload) { | ||
if (_this.searchContext) { | ||
payload.result = _this.searchContext.getSearched(); | ||
} else if (_this.filterContext) { | ||
payload.result = _this.filterContext.getFiltered(); | ||
} else { | ||
payload.result = _this.table.getData(); | ||
} | ||
}); | ||
props.registerExposedAPI(exposedAPIEmitter); | ||
@@ -85,0 +94,0 @@ } |
@@ -36,3 +36,3 @@ 'use strict'; | ||
if (!(this.props.clickToEdit || this.props.dbclickToEdit)) return false; | ||
return nextProps.editingRowIdx === nextProps.rowIndex || this.props.editingRowIdx === nextProps.rowIndex && nextProps.editingRowIdx === null; | ||
return nextProps.editingRowIdx === nextProps.rowIndex || this.props.editingRowIdx === nextProps.rowIndex && nextProps.editingRowIdx === null || this.props.editingRowIdx === nextProps.rowIndex; | ||
} | ||
@@ -39,0 +39,0 @@ }, { |
{ | ||
"name": "react-bootstrap-table-next", | ||
"version": "3.0.1", | ||
"version": "3.0.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
883278
10408