react-arborist 3.0.1 → 3.0.2

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/module.js CHANGED
@@ -1790,21 +1790,21 @@ class $bfece7c4aed4e9c4$export$e2da3477247342d1 {
1790
1790
  if (this.isFiltered) return false;
1791
1791
  const parentNode = this.get(this.state.dnd.parentId) ?? this.root;
1792
1792
  const dragNodes = this.dragNodes;
1793
- const check = this.props.disableDrop;
1793
+ const isDisabled = this.props.disableDrop;
1794
1794
  for (const drag of dragNodes){
1795
1795
  if (!drag) return false;
1796
1796
  if (!parentNode) return false;
1797
1797
  if (drag.isInternal && $0e6083160f4b36ed$exports.isDecendent(parentNode, drag)) return false;
1798
1798
  }
1799
1799
  // Allow the user to insert their own logic
1800
- if (typeof check == "function") return check({
1800
+ if (typeof isDisabled == "function") return !isDisabled({
1801
1801
  parentNode: parentNode,
1802
1802
  dragNodes: this.dragNodes,
1803
1803
  index: this.state.dnd.index
1804
1804
  });
1805
- else if (typeof check == "string") // @ts-ignore
1806
- return !!parentNode.data[check];
1807
- else if (typeof check === "boolean") return check;
1805
+ else if (typeof isDisabled == "string") // @ts-ignore
1806
+ return !parentNode.data[isDisabled];
1807
+ else if (typeof isDisabled === "boolean") return !isDisabled;
1808
1808
  else return true;
1809
1809
  }
1810
1810
  hideCursor() {