editor: clear the editor when selected widget is removed by an undo/redo action
This commit is contained in:
parent
960cf1f1e4
commit
99cdaf5e02
2 changed files with 6 additions and 0 deletions
|
|
@ -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 = []
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue