@inf-monkeys-tech/monkeys-design 0.4.41 → 0.4.42
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.
|
@@ -1785,7 +1785,7 @@ function DraggableTreeItem({
|
|
|
1785
1785
|
onToggle
|
|
1786
1786
|
}) {
|
|
1787
1787
|
const { node, depth } = entry;
|
|
1788
|
-
const hasChildren = Boolean(node.children?.length);
|
|
1788
|
+
const hasChildren = node.collapsible === true || Boolean(node.children?.length);
|
|
1789
1789
|
const disabled = Boolean(node.disabled);
|
|
1790
1790
|
const selectable = node.selectable !== false && !disabled;
|
|
1791
1791
|
const draggable = node.draggable !== false && !disabled;
|
|
@@ -2185,7 +2185,7 @@ function DataExplorerDraggableTree({
|
|
|
2185
2185
|
expanded: activeEntry.node.collapsible === false || resolvedExpandedNodeIds.has(activeEntry.node.id),
|
|
2186
2186
|
active: true,
|
|
2187
2187
|
over: false,
|
|
2188
|
-
hasChildren: Boolean(activeEntry.node.children?.length),
|
|
2188
|
+
hasChildren: activeEntry.node.collapsible === true || Boolean(activeEntry.node.children?.length),
|
|
2189
2189
|
disabled: Boolean(activeEntry.node.disabled),
|
|
2190
2190
|
selectable: activeEntry.node.selectable !== false,
|
|
2191
2191
|
draggable: activeEntry.node.draggable !== false,
|