Nebular menu click automatically scrolls to top and closing expanded menu
- 主要语言
- TypeScript
- 星标
- 8.1k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
I have created dynamic list of menu with nbMenuService in nebular sidebar.
menu: NbMenuItem[]
this.menu = [
{
title: "Menu1",
icon: "nb-person",
children: [
{
title: "SubMenu1",
link: "/pages/forms/Sub-Menu1"
},
{
title: "SubMenu2",
link: "/pages/forms/Sub-Menu2"
}
],
"hidden" : this.available_groups.some(v => ['Admin'].includes(v)) ? false : true
this.nbMenuService.addItems(this.menu)
After loading menu list in sidebar, on click of menu it's closing already expanded menus and scrollbar of side menu scrolls to top. Seems on click of menu each time page.component is getting refreshed or hitting the page module again. Can someone guide me what's the issue with my code . Thanks in advance
贡献指南
评估
这个 Issue 还没有评估数据。