We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24a62ab commit 4c81b8bCopy full SHA for 4c81b8b
src/app/components/sandbox/CodeEditor/index.js
@@ -195,7 +195,10 @@ export default class CodeEditor extends React.PureComponent {
195
const showAutoComplete = cm => {
196
if (this.server) {
197
const filter = new RegExp('[.a-z_$]', 'i');
198
- if (cm.display.input.textarea.value.slice(-1).match(filter)) {
+ if (
199
+ cm.display.input.textarea.value &&
200
+ cm.display.input.textarea.value.slice(-1).match(filter)
201
+ ) {
202
cm.showHint({ hint: this.server.getHint, completeSingle: false });
203
}
204
0 commit comments