Nouvelles corrections sur la fiche
This commit is contained in:
@@ -146,6 +146,15 @@ export default class AwEActorSheet extends HandlebarsApplicationMixin(foundry.ap
|
||||
*/
|
||||
_onDragStart(event) {
|
||||
if ("link" in event.target.dataset) return
|
||||
const el = event.currentTarget
|
||||
const itemId = el.dataset.itemId
|
||||
const itemUuid = el.dataset.itemUuid
|
||||
if (!itemUuid && !itemId) return
|
||||
const item = itemUuid
|
||||
? fromUuidSync(itemUuid)
|
||||
: this.document.items.get(itemId)
|
||||
if (!item) return
|
||||
event.dataTransfer.setData("text/plain", JSON.stringify({ type: "Item", uuid: item.uuid }))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user