svelte-dnd-action 0.9.65 → 0.9.66

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/index.js CHANGED
@@ -1493,9 +1493,9 @@
1493
1493
  return;
1494
1494
  }
1495
1495
  isDraggedOutsideOfAnyDz = false;
1496
- // this deals with another race condition. in rare occasions (super rapid operations) the list hasn't updated yet
1496
+ // this deals with another race condition. on some occasions (super rapid operations) the list hasn't updated yet
1497
1497
  items = items.filter(function (item) {
1498
- return item[ITEM_ID_KEY] !== shadowElData[ITEM_ID_KEY];
1498
+ return item[ITEM_ID_KEY] !== shadowElData[ITEM_ID_KEY] && item[ITEM_ID_KEY] !== SHADOW_PLACEHOLDER_ITEM_ID;
1499
1499
  });
1500
1500
  printDebug(function () {
1501
1501
  return "dragged entered items ".concat(toString(items));
package/dist/index.mjs CHANGED
@@ -1487,9 +1487,9 @@ function handleDraggedEntered(e) {
1487
1487
  return;
1488
1488
  }
1489
1489
  isDraggedOutsideOfAnyDz = false;
1490
- // this deals with another race condition. in rare occasions (super rapid operations) the list hasn't updated yet
1490
+ // this deals with another race condition. on some occasions (super rapid operations) the list hasn't updated yet
1491
1491
  items = items.filter(function (item) {
1492
- return item[ITEM_ID_KEY] !== shadowElData[ITEM_ID_KEY];
1492
+ return item[ITEM_ID_KEY] !== shadowElData[ITEM_ID_KEY] && item[ITEM_ID_KEY] !== SHADOW_PLACEHOLDER_ITEM_ID;
1493
1493
  });
1494
1494
  printDebug(function () {
1495
1495
  return "dragged entered items ".concat(toString(items));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "svelte-dnd-action",
3
3
  "description": "*An awesome drag and drop library for Svelte 3 and 4 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *",
4
- "version": "0.9.65",
4
+ "version": "0.9.66",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/isaacHagoel/svelte-dnd-action.git"
@@ -141,8 +141,8 @@ function handleDraggedEntered(e) {
141
141
  return;
142
142
  }
143
143
  isDraggedOutsideOfAnyDz = false;
144
- // this deals with another race condition. in rare occasions (super rapid operations) the list hasn't updated yet
145
- items = items.filter(item => item[ITEM_ID_KEY] !== shadowElData[ITEM_ID_KEY]);
144
+ // this deals with another race condition. on some occasions (super rapid operations) the list hasn't updated yet
145
+ items = items.filter(item => item[ITEM_ID_KEY] !== shadowElData[ITEM_ID_KEY] && item[ITEM_ID_KEY] !== SHADOW_PLACEHOLDER_ITEM_ID);
146
146
  printDebug(() => `dragged entered items ${toString(items)}`);
147
147
 
148
148
  if (originDropZone !== e.currentTarget) {