@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.
|
@@ -1807,7 +1807,7 @@ function DraggableTreeItem({
|
|
|
1807
1807
|
onToggle
|
|
1808
1808
|
}) {
|
|
1809
1809
|
const { node, depth } = entry;
|
|
1810
|
-
const hasChildren = Boolean(node.children?.length);
|
|
1810
|
+
const hasChildren = node.collapsible === true || Boolean(node.children?.length);
|
|
1811
1811
|
const disabled = Boolean(node.disabled);
|
|
1812
1812
|
const selectable = node.selectable !== false && !disabled;
|
|
1813
1813
|
const draggable = node.draggable !== false && !disabled;
|
|
@@ -2207,7 +2207,7 @@ function DataExplorerDraggableTree({
|
|
|
2207
2207
|
expanded: activeEntry.node.collapsible === false || resolvedExpandedNodeIds.has(activeEntry.node.id),
|
|
2208
2208
|
active: true,
|
|
2209
2209
|
over: false,
|
|
2210
|
-
hasChildren: Boolean(activeEntry.node.children?.length),
|
|
2210
|
+
hasChildren: activeEntry.node.collapsible === true || Boolean(activeEntry.node.children?.length),
|
|
2211
2211
|
disabled: Boolean(activeEntry.node.disabled),
|
|
2212
2212
|
selectable: activeEntry.node.selectable !== false,
|
|
2213
2213
|
draggable: activeEntry.node.draggable !== false,
|