akveo / akveo/nebular

Nebular menu click automatically scrolls to top and closing expanded menu

未关闭
#2,786 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。