You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
The feature to add in multiple root nodes via an array only works to display the initial tree. If you then interact with the tree it simply disappears. Example from the storybook if you change the default data to be an array as below clicking on any leaf or branch will cause tree to disappear.
The feature to add in multiple root nodes via an array only works to display the initial tree. If you then interact with the tree it simply disappears. Example from the storybook if you change the default data to be an array as below clicking on any leaf or branch will cause tree to disappear.
export default [{
name: 'react-treebeard',
id: 1,
toggled: true,
children: [
{
name: 'example',
children: [
{ name: 'app.js' },
{ name: 'data.js' },
{ name: 'index.html' },
{ name: 'styles.js' },
{ name: 'webpack.config.js' }
]
},
{
name: 'node_modules',
loading: true,
children: []
},
{
name: 'src',
children: [
{
name: 'components',
children: [
{ name: 'decorators.js' },
{ name: 'treebeard.js' }
]
},
{ name: 'index.js' }
]
},
{
name: 'themes',
children: [
{ name: 'animations.js' },
{ name: 'default.js' }
]
},
{ name: 'gulpfile.js' },
{ name: 'index.js' },
{ name: 'package.json' }
]
}, {name: 'trial 2', id: 300, toggled: true, children: [ {name: 'example 2'}]}];
The text was updated successfully, but these errors were encountered: