From b7653a6632efdcd0df67a9495a130a6f269c2122 Mon Sep 17 00:00:00 2001 From: fuzi1996 Date: Sat, 18 Oct 2025 13:02:33 +0800 Subject: [PATCH] Fix interact.js context by providing proper document scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added context parameter to interact() calls in tryMakeDraggable and tryMakeResizable functions to ensure proper scoping within the component's document context. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/components/GridItem.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }