[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) {
|
if (self.droppedIdToSelectAfterRefresh) {
|
||||||
self.select(null, self.droppedIdToSelectAfterRefresh);
|
self.select(null, self.droppedIdToSelectAfterRefresh);
|
||||||
delete self.droppedIdToSelectAfterRefresh;
|
delete self.droppedIdToSelectAfterRefresh;
|
||||||
}
|
} else if (composition.indexOf(self.selectedId) === -1) {
|
||||||
|
|
||||||
if (composition.indexOf(self.selectedId) === -1) {
|
|
||||||
self.clearSelection();
|
self.clearSelection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user