diff --git a/src/plugins/displayLayout/components/SubobjectView.vue b/src/plugins/displayLayout/components/SubobjectView.vue index 17e42ff0ec..cc1c838d5a 100644 --- a/src/plugins/displayLayout/components/SubobjectView.vue +++ b/src/plugins/displayLayout/components/SubobjectView.vue @@ -26,7 +26,8 @@ + :has-frame="item.hasFrame" + ref="objectFrame"> @@ -98,13 +99,15 @@ setObject(domainObject) { this.domainObject = domainObject; this.objectPath = [this.domainObject].concat(this.openmct.router.path); - this.context = { - item: domainObject, - layoutItem: this.item, - index: this.index - }; - this.removeSelectable = this.openmct.selection.selectable( - this.$el, this.context, this.initSelect); + this.$nextTick(function () { + let childContext = this.$refs.objectFrame.getSelectionContext(); + childContext.item = domainObject; + childContext.layoutItem = this.item; + childContext.index = this.index; + this.context = childContext; + this.removeSelectable = this.openmct.selection.selectable( + this.$el, this.context, this.initSelect); + }); } }, mounted() { diff --git a/src/plugins/flexibleLayout/components/frame.vue b/src/plugins/flexibleLayout/components/frame.vue index 77286d4c00..308b894c3d 100644 --- a/src/plugins/flexibleLayout/components/frame.vue +++ b/src/plugins/flexibleLayout/components/frame.vue @@ -35,7 +35,8 @@ v-if="domainObject" :domain-object="domainObject" :object-path="objectPath" - :has-frame="hasFrame"> + :has-frame="hasFrame" + ref="objectFrame">