-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(menu): remove hardcoded max-height #122
Conversation
} | ||
}); | ||
.pipe(takeWhile(() => this.alive)) | ||
.pipe(filter(data => this.compareTag(data.tag))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be in the one pipe
@@ -230,16 +278,17 @@ export class NbMenuComponent implements OnInit, OnDestroy { | |||
} | |||
|
|||
private getHomeItem(items: NbMenuItem[]): NbMenuItem { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you could rewrite this method more beautiful
item.expanded = false; | ||
if (oldValue !== item.expanded) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it the same as if (oldValue)
#65