diff --git a/CHANGELOG.md b/CHANGELOG.md index 94e1b174..a342744f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - bottom horizontal scrollbar not responding on small screens - remote file browser: hitting a letter to select a file based on its name was looping on the first two matches only - editor: preserve backslashes in enquoted strings (not in objects/arrays) + - editor: clear the editor when selected widget is removed by an undo/redo action - widgets - `logScale` can be set to a number to use a logarithm base different from the default - knob: `compact` mode is back diff --git a/src/client/app/editor/index.js b/src/client/app/editor/index.js index 849d7a0e..d377864f 100644 --- a/src/client/app/editor/index.js +++ b/src/client/app/editor/index.js @@ -831,6 +831,11 @@ var Editor = class Editor { updateWidget(widget, options) + if (this.selectedWidgets[0] && !widgetManager.widgets[this.selectedWidgets[0].hash]) { + this.unselect() + this.selectedWidgets = [] + } + }