Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 16bea7c

Browse files
fix selectRow doesnt pass to CellEditContext
1 parent 84dacc6 commit 16bea7c

File tree

2 files changed

+3
-0
lines changed
  • packages

2 files changed

+3
-0
lines changed

‎packages/react-bootstrap-table2-editor/src/context.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default (
1616
class CellEditProvider extends React.Component {
1717
static propTypes = {
1818
data: PropTypes.array.isRequired,
19+
selectRow: PropTypes.object,
1920
options: PropTypes.shape({
2021
mode: PropTypes.oneOf([CLICK_TO_CELL_EDIT, DBCLICK_TO_CELL_EDIT]).isRequired,
2122
onErrorMessageDisappear: PropTypes.func,
@@ -101,6 +102,7 @@ export default (
101102
cellEdit: {
102103
options: { nonEditableRows, errorMessage, ...optionsRest },
103104
editingCellFactory,
105+
createContext,
104106
...cellEditRest
105107
}
106108
} = this.props;

‎packages/react-bootstrap-table2/src/contexts/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ const withContext = Base =>
170170
return rootProps => (
171171
<this.CellEditContext.Provider
172172
{ ...baseProps }
173+
selectRow={ this.props.selectRow }
173174
cellEdit={ this.props.cellEdit }
174175
data={ rootProps.getData() }
175176
>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /