diff --git a/src/components/GridItem.vue b/src/components/GridItem.vue index 48365a8f..7f0365bb 100644 --- a/src/components/GridItem.vue +++ b/src/components/GridItem.vue @@ -841,7 +841,7 @@ tryMakeDraggable: function(){ const self = this; if (this.interactObj === null || this.interactObj === undefined) { - this.interactObj = interact(this.$refs.item); + this.interactObj = interact(this.$refs.item, { context: this.$el.ownerDocument }); if (!this.useStyleCursor) { this.interactObj.styleCursor(false); } @@ -869,7 +869,7 @@ tryMakeResizable: function(){ const self = this; if (this.interactObj === null || this.interactObj === undefined) { - this.interactObj = interact(this.$refs.item); + this.interactObj = interact(this.$refs.item, { context: this.$el.ownerDocument }); if (!this.useStyleCursor) { this.interactObj.styleCursor(false); }