@rpg-engine/long-bow 0.7.76 → 0.7.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27845,10 +27845,12 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
27845
27845
  }, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled]);
27846
27846
  React.useEffect(function () {
27847
27847
  // Handle outside drop
27848
- if (onDrop && item && dropPosition) {
27849
- onDrop(item, dropPosition);
27848
+ if (onDrop && draggingState.item && dropPosition) {
27849
+ console.log('ITEM SLOT: Outside drop', draggingState.item.key);
27850
+ onDrop(draggingState.item, dropPosition);
27851
+ clearDraggingState();
27850
27852
  }
27851
- }, [dropPosition, onDrop, item]);
27853
+ }, [dropPosition, onDrop, draggingState.item]);
27852
27854
  var resetItem = function resetItem() {
27853
27855
  clearDraggingState();
27854
27856
  updateDetailsState({