0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-26 22:43:07 +00:00

tweak cClass logic

This commit is contained in:
Trevor Buckner
2023-07-04 03:31:21 -04:00
committed by Charlie Humphreys
parent ebbf0ca88b
commit 8e40cec051
3 changed files with 9 additions and 7 deletions

View File

@@ -456,7 +456,7 @@ const CodeEditor = createClass({
// Close open widgets if click outside of a widget
if(!e.target.matches('.CodeMirror-linewidget *')) {
for (const widget of this.state.widgets) {
this.state.widgetUtils.removeLineWidgets(widget);
widget.clear();
}
this.setState({
widgets : []