0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-28 00:43:08 +00:00

Merge pull request #2908 from naturalcrit/tweak-cClass-logic

[Widgets] Tweak cClass logic
This commit is contained in:
Charlie
2023-07-04 12:02:11 -05:00
committed by GitHub
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 : []