editor: don't reuse if undo fails to find parent

This commit is contained in:
jean-emmanuel 2018-10-17 16:38:25 +02:00
parent 690a031c3d
commit c467cd593e

View file

@ -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)
}