The dataTransfer data from a drag & drop event can only be accessed during the dragStart and drop parts of it in Chrome (and therefore the app). We were using this data to highlight the sort slots on the Inventory and Crew tabs, and to indicate potential drop locations. This PR fixes that by saving the data as a data transfer type which can be accessed at any part of the process. As a side effect the sort slots and drop locations are not highlighted if the dropped entity comes from a compendium/folder.
The
dataTransfer
data from a drag & drop event can only be accessed during thedragStart
anddrop
parts of it in Chrome (and therefore the app). We were using this data to highlight the sort slots on the Inventory and Crew tabs, and to indicate potential drop locations. This PR fixes that by saving the data as a data transfer type which can be accessed at any part of the process. As a side effect the sort slots and drop locations are not highlighted if the dropped entity comes from a compendium/folder.