Fix drop on item uses target, not currentTarget
This commit is contained in:
parent
bb1d03c8a4
commit
28fa6138bc
@ -138,7 +138,7 @@ export class RdDActorSheet extends ActorSheet {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async _onDropItem(event, dragData) {
|
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 dropParams = RdDSheetUtility.prepareItemDropParameters(destItemId, this.actor.id, dragData, this.objetVersConteneur);
|
||||||
const callSuper = await this.actor.processDropItem(dropParams);
|
const callSuper = await this.actor.processDropItem(dropParams);
|
||||||
if (callSuper) {
|
if (callSuper) {
|
||||||
|
Loading…
Reference in New Issue
Block a user