Skip to content

Commit d642f68

Browse files
committed
Passing change argument to props.onChange
1 parent b9a7c8e commit d642f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const CodeMirror = React.createClass({
9191
},
9292
codemirrorValueChanged (doc, change) {
9393
if (this.props.onChange && change.origin !== 'setValue') {
94-
this.props.onChange(doc.getValue());
94+
this.props.onChange(doc.getValue(), change);
9595
}
9696
},
9797
render () {

0 commit comments

Comments
 (0)