@rpg-engine/long-bow 0.2.91 → 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 -1
- 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 -1
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +5 -4
package/package.json
CHANGED
|
@@ -284,11 +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
|
-
const isOutsideDrop =
|
|
288
|
-
|
|
287
|
+
const isOutsideDrop =
|
|
288
|
+
classes.some(elm => {
|
|
289
|
+
//elm matches ItemContainer string
|
|
289
290
|
|
|
290
|
-
|
|
291
|
-
|
|
291
|
+
return elm.includes('rpgui-content');
|
|
292
|
+
}) || classes.length === 0;
|
|
292
293
|
|
|
293
294
|
if (isOutsideDrop) {
|
|
294
295
|
setDropPosition({
|