@rpg-engine/long-bow 0.2.53 → 0.2.54
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 +4 -2
- 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 +4 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +5 -2
package/dist/long-bow.esm.js
CHANGED
|
@@ -28149,8 +28149,10 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
28149
28149
|
},
|
|
28150
28150
|
onClick: function onClick() {
|
|
28151
28151
|
setTooltipVisible(false);
|
|
28152
|
-
if (item
|
|
28153
|
-
|
|
28152
|
+
if (item) {
|
|
28153
|
+
if (!isContextMenuDisabled) {
|
|
28154
|
+
setIsContextMenuVisible(!isContextMenuVisible);
|
|
28155
|
+
}
|
|
28154
28156
|
_onClick(item.type, containerType, item);
|
|
28155
28157
|
}
|
|
28156
28158
|
}
|