@jsenv/dom 0.17.30 → 0.17.31

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/jsenv_dom.js CHANGED
@@ -12817,6 +12817,14 @@ const startDragToCarryCopy = (event, {
12817
12817
  const allItems = [];
12818
12818
  const items = [];
12819
12819
  for (const el of containerElement.querySelectorAll(itemSelector)) {
12820
+ // The copy in hand is a clone of an item, attributes included, and it
12821
+ // lives in this same parent: it matches the selector without being
12822
+ // an item. Excluded here rather than by stripping attributes off the
12823
+ // clone, because a custom itemSelector (a class, a tag) would still
12824
+ // match it.
12825
+ if (cloneWrapper.contains(el)) {
12826
+ continue;
12827
+ }
12820
12828
  allItems.push(el);
12821
12829
  if (el !== draggedElement) {
12822
12830
  items.push(el);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/dom",
3
- "version": "0.17.30",
3
+ "version": "0.17.31",
4
4
  "type": "module",
5
5
  "description": "DOM utilities for writing frontend code",
6
6
  "repository": {