From 28fa6138bc513f15dc3b570e27c26b4131514fa6 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 1 Jan 2022 14:02:27 +0100 Subject: [PATCH] Fix drop on item uses target, not currentTarget --- module/actor-sheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 4fe156db..a273878b 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -138,7 +138,7 @@ export class RdDActorSheet extends ActorSheet { /* -------------------------------------------- */ async _onDropItem(event, dragData) { - const destItemId = RdDSheetUtility.getItemId(event); + const destItemId = $(event.target)?.closest('.item').attr('data-item-id'); const dropParams = RdDSheetUtility.prepareItemDropParameters(destItemId, this.actor.id, dragData, this.objetVersConteneur); const callSuper = await this.actor.processDropItem(dropParams); if (callSuper) {