mirror of
https://github.com/nasa/openmct.git
synced 2025-03-11 06:54:01 +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) {
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user