From fd407132a8eb286961a5ead3faf482ddc8793dd3 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 16 Apr 2020 18:57:09 +0200 Subject: [PATCH] editor: fix inspector update after lasso selection --- src/client/editor/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/editor/index.js b/src/client/editor/index.js index 6b545bad..e8134c96 100644 --- a/src/client/editor/index.js +++ b/src/client/editor/index.js @@ -161,7 +161,6 @@ class Editor { for (var i in elements) { this.select(elements[i], {multi:true, fromLasso:true}) } - this.select(this.selectedWidgets) }) @@ -426,9 +425,9 @@ class Editor { } - if (!options.fromLasso) this.unselect() + this.unselect() - if (this.selectedWidgets.length > 0 && !options.fromLasso) { + if (this.selectedWidgets.length > 0) { this.inspector.inspect(this.selectedWidgets) this.createSelectionBlock()