We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Children inside children does not seem to be working. I'm using the following sidebar configuration
[ { "title": "name", "children": [ { "title": "item 1", "link": "#" }, { "title": "item 2", "link": "#" }, { "title": "another list", "children": [ { "title": "item 3", "link": "#" } ] } ] } ]
When using this sidebar configuration, I get the following error:
When I remove the item with the children it works as expected.
The text was updated successfully, but these errors were encountered:
Same here, is there any other way to implement multi-level menu?
Sorry, something went wrong.
The problem is that SideBarItem cannot have any children. See https://github.com/egoist/docute/blob/master/src/components/SidebarItem.vue#L37-L52.
SideBarItem
This could probably be fixed by adding a SideBarItem if it detects that the item has children:
<div class="ItemChildren" v-if="children && (open || item.collapsable === false)" > <div class="ItemChild" v-for="(link, index) of children" :key="index"> ... <sidebar-item v-if="link.children" :item="link" :open="closedItems.indexOf(index) === -1" @toggle="toggleItem(index)" /> </div> </div>
No branches or pull requests
Children inside children does not seem to be working. I'm using the following sidebar configuration
When using this sidebar configuration, I get the following error:
When I remove the item with the children it works as expected.
The text was updated successfully, but these errors were encountered: