Skip to content
New issue

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

nb-sidebar does not display NbMenuItem children #532

Closed
1 task done
denisobrienirl opened this issue Jun 28, 2018 · 1 comment
Closed
1 task done

nb-sidebar does not display NbMenuItem children #532

denisobrienirl opened this issue Jun 28, 2018 · 1 comment

Comments

@denisobrienirl
Copy link

Issue type

I'm submitting a ... (check one with "x")

  • bug report (at least it seems so)

Issue description

Current behavior:
It's a tough one to explain in English, but here is my best attempt at it...

nb-sidebar does not display NbMenuItem children if initiated with state="compacted" and returned to from any auth pages(login, password reset, etc...)
NOTE: This issue does not occur if state="compacted" in NOT used.

Expected behavior:
NbMenuItem children should be displayed.

Steps to reproduce:
No English can explain this, here are some breadcrumbs and an animated gif :)

With state="compacted"
Dashboard loaded --> Sidebar expanded --> Auth group expanded --> Login selected --> Browser 'Go Back' button clicked --> Observing that no children exist for Auth menu group.
peek 2018-06-28 06-43

Without state="compacted"
Dashboard loaded --> Auth group expanded --> Login selected --> Browser 'Go Back' button clicked --> Observing that children items are present in Auth menu group.
peek 2018-06-28 06-45

Related code:
sample.layout.ts

<nb-sidebar class="menu-sidebar"
                   tag="menu-sidebar"
                   state="compacted"
                   responsive
                   [end]="sidebar.id === 'end'">

Other information:

npm, node, OS, Browser

Node: v10.5.0
NPM: 6.0.1
OS: Ubuntu 18.04 LTS
Browser: Chrome Version 67.0.3396.87 (Official Build) (64-bit)

Angular, Nebular

"@angular/core": "6.0.0",
"@nebular/auth": "2.0.0-rc.9",
"@nebular/security": "2.0.0-rc.9",
"@nebular/theme": "2.0.0-rc.9",
@nnixaa
Copy link
Collaborator

nnixaa commented Jun 29, 2018

Hi @denisobrienirl, thanks for reporting! Yes, we can see it (probably related to #444). Should be fixed in the next rc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants