0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-23 02:18:12 +00:00

add image selector field type, modal component, and new snippet widgets

This commit is contained in:
Charlie Humphreys
2023-07-16 02:14:43 -05:00
parent e6055bd417
commit bef6b94dc4
10 changed files with 301 additions and 17 deletions

View File

@@ -165,7 +165,7 @@ const CodeEditor = createClass({
const { line } = cm.getCursor();
for (const key in this.state.widgets) {
if(key != line) {
this.state.widgets[key]?.clear();
this.state.widgetUtils.removeLineWidget(key, this.state.widgets[key]);
}
}
const { widgets } = this.codeMirror.lineInfo(line);
@@ -196,7 +196,7 @@ const CodeEditor = createClass({
}
} else {
for (const widget of widgets) {
widget.clear();
this.state.widgetUtils.removeLineWidget(n, widget);
}
}
}