We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9a7c8e commit d642f68Copy full SHA for d642f68
src/Codemirror.js
@@ -91,7 +91,7 @@ const CodeMirror = React.createClass({
91
},
92
codemirrorValueChanged (doc, change) {
93
if (this.props.onChange && change.origin !== 'setValue') {
94
- this.props.onChange(doc.getValue());
+ this.props.onChange(doc.getValue(), change);
95
}
96
97
render () {
0 commit comments