| 914 | |
| 915 | if (beforeSaveCell) { |
| 916 | const beforeSaveCellCB = result => { |
| 917 | this.body.cancelEditCell(); |
| 918 | if (result || result === undefined) { |
| 919 | this.editCell(newVal, rowIndex, colIndex); |
| 920 | } else { |
| 921 | invalid(); |
| 922 | } |
| 923 | }; |
| 924 | const props = { rowIndex, colIndex }; |
| 925 | const isValid = beforeSaveCell(this.state.data[rowIndex], fieldName, newVal, beforeSaveCellCB, props); |
| 926 | if (isValid === false && typeof isValid !== 'undefined') { |
nothing calls this directly
no test coverage detected
searching dependent graphs…