diff --git a/src/ui/components/ObjectView.vue b/src/ui/components/ObjectView.vue index 870cc34d4d..1685a8fdd3 100644 --- a/src/ui/components/ObjectView.vue +++ b/src/ui/components/ObjectView.vue @@ -53,7 +53,9 @@ export default { mounted() { this.currentObject = this.object; this.updateView(); - this.$el.addEventListener('dragover', this.onDragOver); + this.$el.addEventListener('dragover', this.onDragOver, { + capture: true + }); this.$el.addEventListener('drop', this.editIfEditable, { capture: true }); @@ -269,6 +271,7 @@ export default { if (provider && provider.canEdit && provider.canEdit(this.currentObject) && + this.isEditingAllowed() && !this.openmct.editor.isEditing()) { this.openmct.editor.edit(); }