Skip to content

Commit b2bd1e6

Browse files
ensure do not recommit on componentWillUnmount
1 parent c87d952 commit b2bd1e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/addons/editors/EditorContainer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,10 @@ const EditorContainer = React.createClass({
178178
let opts = args || {};
179179
let updated = this.getEditor().getValue();
180180
if (this.isNewValueValid(updated)) {
181+
this.changeCommitted = true;
181182
let cellKey = this.props.column.key;
182183
this.props.cellMetaData.onCommit({cellKey: cellKey, rowIdx: this.props.rowIdx, updated: updated, key: opts.key});
183184
}
184-
185-
this.changeCommitted = true;
186185
},
187186

188187
isNewValueValid(value: string): boolean {

0 commit comments

Comments
 (0)