@rpg-engine/long-bow 0.8.0 → 0.8.1

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.
@@ -27938,15 +27938,14 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
27938
27938
  },
27939
27939
  isFocused: false
27940
27940
  });
27941
- }, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled]);
27942
- useEffect(function () {
27943
- // Reset drag position and focus when item changes
27944
27941
  clearDraggingState();
27945
27942
  // Clear context actions when component unmounts or dependencies change
27946
27943
  return function () {
27944
+ clearDraggingState();
27945
+ clearDetailsState();
27947
27946
  clearContextActions();
27948
27947
  };
27949
- }, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled, updateDraggingState]);
27948
+ }, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled, clearDraggingState, clearDetailsState, updateDraggingState]);
27950
27949
  var resetItem = function resetItem() {
27951
27950
  clearDraggingState();
27952
27951
  clearDetailsState();