@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.
@@ -27839,10 +27839,12 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
27839
27839
  }, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled]);
27840
27840
  useEffect(function () {
27841
27841
  // Handle outside drop
27842
- if (onDrop && item && dropPosition) {
27843
- onDrop(item, dropPosition);
27842
+ if (onDrop && draggingState.item && dropPosition) {
27843
+ console.log('ITEM SLOT: Outside drop', draggingState.item.key);
27844
+ onDrop(draggingState.item, dropPosition);
27845
+ clearDraggingState();
27844
27846
  }
27845
- }, [dropPosition, onDrop, item]);
27847
+ }, [dropPosition, onDrop, draggingState.item]);
27846
27848
  var resetItem = function resetItem() {
27847
27849
  clearDraggingState();
27848
27850
  updateDetailsState({