Skip to content

Commit 2a35eab

Browse files
author
Jimmy Jia
committed
[fixed] Fix CodeMirrorEditor binding
Fixes react-bootstrap#708
1 parent 1b58489 commit 2a35eab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/ReactPlayground.js

+6
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ const IS_MOBILE = typeof navigator !== 'undefined' && (
107107
);
108108

109109
class CodeMirrorEditor extends React.Component {
110+
constructor(props) {
111+
super(props);
112+
113+
this.handleChange = this.handleChange.bind(this);
114+
}
115+
110116
componentDidMount() {
111117
if (IS_MOBILE || CodeMirror === undefined) {
112118
return;

0 commit comments

Comments
 (0)