From 2a35eab2e78eb15b066be29aede70ccebe3b39ad Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Wed, 20 May 2015 12:18:01 -0400 Subject: [PATCH] [fixed] Fix CodeMirrorEditor binding Fixes #708 --- docs/src/ReactPlayground.js | 6 ++++++ 1 file changed, 6 insertions(+) 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;