editor: don't reuse if undo fails to find parent
This commit is contained in:
parent
a4fb88ee70
commit
ed4216e607
1 changed files with 2 additions and 1 deletions
|
|
@ -855,12 +855,13 @@ var Editor = class Editor {
|
|||
|
||||
if (e.length) {
|
||||
w = widgetManager.getWidgetByElement(e[0])
|
||||
updateWidget(w, indexes)
|
||||
} else {
|
||||
// in case the elements are in a hidden tab (detached dom)
|
||||
w = widgetManager.getWidgetById('root')[0]
|
||||
updateWidget(w, {reuseChildren: false})
|
||||
}
|
||||
|
||||
updateWidget(w, indexes)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue