editor: fix selecting parent widget after deleting a widget

This commit is contained in:
jean-emmanuel 2018-03-06 21:01:27 +01:00
parent 0773a05050
commit 0065dead4b
2 changed files with 2 additions and 1 deletions

View file

@ -60,7 +60,7 @@ var updateWidget = function(widget, options = {}) {
}
}
if (!options.preventSelect && editing) {
if (!options.preventSelect || editing) {
editor.select(newWidget)
}