Open IonutLaceanu opened 8 years ago
I am also seeing this.
If this issue still persists please give react-codemirror2 a look. I'm planning on maintaining this moving forward. Better docs will be coming. Feel free to open up any issues/suggestions as I'll be trying to gather as much constructive feedback from the community moving forward
Hi
I receive
Uncaught TypeError: Cannot read property 'setOption' of undefined
, which happens incomponentWillReceiveProps
at line 50.this.codeMirror.setOption(optionName, nextProps.options[optionName]);
For some reason, it seems that
componentWillReceiveProps
triggers beforecomponentDidMount
, sothis.codeMirror
is not yet defined.The event also triggers after
componentDidMount
, though.