mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-25 01:03:08 +00:00
fix a few issues
This commit is contained in:
@@ -168,6 +168,10 @@ const CodeEditor = createClass({
|
||||
this.state.widgetUtils.removeLineWidget(key, this.state.widgets[key]);
|
||||
}
|
||||
}
|
||||
this.setState({
|
||||
hints : [],
|
||||
hintsField : undefined
|
||||
});
|
||||
const { widgets } = this.codeMirror.lineInfo(line);
|
||||
if(!widgets) {
|
||||
const widget = this.state.widgetUtils.updateLineWidgets(line);
|
||||
@@ -198,6 +202,10 @@ const CodeEditor = createClass({
|
||||
for (const widget of widgets) {
|
||||
this.state.widgetUtils.removeLineWidget(n, widget);
|
||||
}
|
||||
this.setState({
|
||||
hints : [],
|
||||
hintsField : undefined
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user