[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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user