From 14df350994a3e2b98874cb544290d465d6d244a7 Mon Sep 17 00:00:00 2001 From: Pegah Sarram Date: Fri, 27 Oct 2017 18:18:09 -0700 Subject: [PATCH] [Layout] Fix regression... ...by clearing the selection only if the selected object is no longer in the compositon and there's no newly dropped object. Fixes # 1790 --- platform/features/layout/src/LayoutController.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/features/layout/src/LayoutController.js b/platform/features/layout/src/LayoutController.js index adc7f5b95d..445b1c9caf 100644 --- a/platform/features/layout/src/LayoutController.js +++ b/platform/features/layout/src/LayoutController.js @@ -127,9 +127,7 @@ define( if (self.droppedIdToSelectAfterRefresh) { self.select(null, self.droppedIdToSelectAfterRefresh); delete self.droppedIdToSelectAfterRefresh; - } - - if (composition.indexOf(self.selectedId) === -1) { + } else if (composition.indexOf(self.selectedId) === -1) { self.clearSelection(); } }