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:
committed by
Charlie Humphreys
parent
ebbf0ca88b
commit
8e40cec051
@@ -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