@rpg-engine/long-bow 0.2.92 → 0.2.93
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 +1 -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 +1 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +5 -6
package/package.json
CHANGED
|
@@ -284,13 +284,12 @@ export const ItemSlot: React.FC<IProps> = observer(
|
|
|
284
284
|
//@ts-ignore
|
|
285
285
|
const classes: string[] = Array.from(e.target?.classList);
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
const isOutsideDrop =
|
|
288
|
+
classes.some(elm => {
|
|
289
|
+
//elm matches ItemContainer string
|
|
288
290
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
return elm.includes('rpgui-content');
|
|
293
|
-
});
|
|
291
|
+
return elm.includes('rpgui-content');
|
|
292
|
+
}) || classes.length === 0;
|
|
294
293
|
|
|
295
294
|
if (isOutsideDrop) {
|
|
296
295
|
setDropPosition({
|