Skip to content

Commit 2de6c5c

Browse files
committed
fix #629
1 parent 9d49093 commit 2de6c5c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/TableBody.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class TableBody extends Component {
6161
blurToSave={ this.props.cellEdit.blurToSave }
6262
rowIndex={ r }
6363
colIndex={ i }
64+
row={ data }
6465
fieldValue={ fieldValue } />
6566
);
6667
} else {

src/TableEditColumn.js

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class TableEditColumn extends Component {
100100
let cellEditor;
101101
if (customEditor) {
102102
const customEditorProps = {
103+
row: this.props.row,
103104
...attr,
104105
defaultValue: fieldValue || '',
105106
...customEditor.customEditorParameters
@@ -132,6 +133,7 @@ TableEditColumn.propTypes = {
132133
blurToSave: PropTypes.bool,
133134
editable: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),
134135
format: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]),
136+
row: PropTypes.any,
135137
fieldValue: PropTypes.oneOfType([
136138
PropTypes.string,
137139
PropTypes.bool,

0 commit comments

Comments
 (0)