mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 14:07:50 +00:00
[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:
parent
7442768ced
commit
14df350994
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user