0
0
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:
Charlie Humphreys
2023-07-18 22:13:40 -05:00
parent 379f260de5
commit e8b427ea21
4 changed files with 26 additions and 11 deletions

View File

@@ -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
});
}
}
});