beforeChange is not fired?
tbwork opened this issue · 0 comments
tbwork commented
My codes:
<CodeMirror
value={script.code}
options={{
mode: 'javascript',
theme: 'solarized light',
lineNumbers: true,
extraKeys: {
Alt: 'autocomplete',
},
hintOptions: {
word: script.dictionary,
hint: this.handleShowHint,
completeSingle: false,
},
highlightSelectionMatches: { showToken: /\w/, annotateScrollbar: true },
}}
onChange={this.handleCodeChange}
onUpdate={this.handleDomChange}
onBeforeChange = {this.handleBeforeChange}
onBeforeSelectionChange = {this.handleBeforeChange}
/>