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

@ -5,6 +5,7 @@
- bug fixes
- regression preventing glass effect from using the widget's color
- missing last key in keyboard widget
- editor: select parent widget after deleting a widget
- widgets
- text: set line-height relative to font size

View file

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