Skip to content

Commit 6f1dcac

Browse files
authored
fix: Allow children function in default renderer
allow children function
2 parents d006e39 + 9d4a18d commit 6f1dcac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/node-renderer-default.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class NodeRendererDefault extends Component {
8383
<div style={{ height: '100%' }} {...otherProps}>
8484
{toggleChildrenVisibility &&
8585
node.children &&
86-
node.children.length > 0 &&
86+
(node.children.length > 0 || typeof node.children === 'function') &&
8787
<div>
8888
<button
8989
type="button"

0 commit comments

Comments
 (0)