mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-04-27 23:24:33 +00:00
fix selectRow doesnt pass to CellEditContext
This commit is contained in:
@@ -16,6 +16,7 @@ export default (
|
||||
class CellEditProvider extends React.Component {
|
||||
static propTypes = {
|
||||
data: PropTypes.array.isRequired,
|
||||
selectRow: PropTypes.object,
|
||||
options: PropTypes.shape({
|
||||
mode: PropTypes.oneOf([CLICK_TO_CELL_EDIT, DBCLICK_TO_CELL_EDIT]).isRequired,
|
||||
onErrorMessageDisappear: PropTypes.func,
|
||||
@@ -101,6 +102,7 @@ export default (
|
||||
cellEdit: {
|
||||
options: { nonEditableRows, errorMessage, ...optionsRest },
|
||||
editingCellFactory,
|
||||
createContext,
|
||||
...cellEditRest
|
||||
}
|
||||
} = this.props;
|
||||
|
||||
@@ -170,6 +170,7 @@ const withContext = Base =>
|
||||
return rootProps => (
|
||||
<this.CellEditContext.Provider
|
||||
{ ...baseProps }
|
||||
selectRow={ this.props.selectRow }
|
||||
cellEdit={ this.props.cellEdit }
|
||||
data={ rootProps.getData() }
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user