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:
@@ -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 : []
|
||||
|
||||
Reference in New Issue
Block a user