[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:
Pegah Sarram 2017-10-27 18:18:09 -07:00
parent 7442768ced
commit 14df350994

View File

@ -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();
}
}