@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.
- package/dist/long-bow.cjs.development.js +3 -4
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +3 -4
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +5 -10
|
@@ -27945,15 +27945,14 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
27945
27945
|
},
|
|
27946
27946
|
isFocused: false
|
|
27947
27947
|
});
|
|
27948
|
-
}, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled]);
|
|
27949
|
-
React.useEffect(function () {
|
|
27950
|
-
// Reset drag position and focus when item changes
|
|
27951
27948
|
clearDraggingState();
|
|
27952
27949
|
// Clear context actions when component unmounts or dependencies change
|
|
27953
27950
|
return function () {
|
|
27951
|
+
clearDraggingState();
|
|
27952
|
+
clearDetailsState();
|
|
27954
27953
|
clearContextActions();
|
|
27955
27954
|
};
|
|
27956
|
-
}, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled, updateDraggingState]);
|
|
27955
|
+
}, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled, clearDraggingState, clearDetailsState, updateDraggingState]);
|
|
27957
27956
|
var resetItem = function resetItem() {
|
|
27958
27957
|
clearDraggingState();
|
|
27959
27958
|
clearDetailsState();
|