@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.2.92",
3
+ "version": "0.2.93",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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
- console.log(classes);
287
+ const isOutsideDrop =
288
+ classes.some(elm => {
289
+ //elm matches ItemContainer string
288
290
 
289
- const isOutsideDrop = classes.some(elm => {
290
- //elm matches ItemContainer string
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({