diff --git a/docs/src/ReactPlayground.js b/docs/src/ReactPlayground.js index b464fbf35a..6561e87287 100644 --- a/docs/src/ReactPlayground.js +++ b/docs/src/ReactPlayground.js @@ -107,6 +107,12 @@ const IS_MOBILE = typeof navigator !== 'undefined' && ( ); class CodeMirrorEditor extends React.Component { + constructor(props) { + super(props); + + this.handleChange = this.handleChange.bind(this); + } + componentDidMount() { if (IS_MOBILE || CodeMirror === undefined) { return;