@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.2.91",
3
+ "version": "0.2.93",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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 = classes.some(elm => {
288
- //elm matches ItemContainer string
287
+ const isOutsideDrop =
288
+ classes.some(elm => {
289
+ //elm matches ItemContainer string
289
290
 
290
- return elm.includes('rpgui-content');
291
- });
291
+ return elm.includes('rpgui-content');
292
+ }) || classes.length === 0;
292
293
 
293
294
  if (isOutsideDrop) {
294
295
  setDropPosition({