Skip to content

Commit

Permalink
fix: Allow children function in default renderer
Browse files Browse the repository at this point in the history
allow children function
  • Loading branch information
fritz-c committed Sep 6, 2017
2 parents d006e39 + 9d4a18d commit 6f1dcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node-renderer-default.js
Expand Up @@ -83,7 +83,7 @@ class NodeRendererDefault extends Component {
<div style={{ height: '100%' }} {...otherProps}>
{toggleChildrenVisibility &&
node.children &&
node.children.length > 0 &&
(node.children.length > 0 || typeof node.children === 'function') &&
<div>
<button
type="button"
Expand Down

0 comments on commit 6f1dcac

Please sign in to comment.