We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 864cf9e commit 2e0eca5Copy full SHA for 2e0eca5
src/TableEditColumn.js
@@ -25,10 +25,18 @@ class TableEditColumn extends Component {
25
} else if (e.keyCode === 27) {
26
this.props.completeEdit(
27
null, this.props.rowIndex, this.props.colIndex);
28
+ } else if (e.type === 'click') { // textarea click save button
29
+ const value = e.target.parentElement.firstChild.value;
30
+ if (!this.validator(value)) {
31
+ return;
32
+ }
33
+ this.props.completeEdit(
34
+ value, this.props.rowIndex, this.props.colIndex);
35
}
36
37
38
handleBlur = e => {
39
+ e.stopPropagation();
40
if (this.props.blurToSave) {
41
const value = e.currentTarget.type === 'checkbox' ?
42
this._getCheckBoxValue(e) : e.currentTarget.value;
0 commit comments