-
Notifications
You must be signed in to change notification settings - Fork 90
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
feat(NcAppNavigationItem): make collapsible by clicking on whole component #6131
base: master
Are you sure you want to change the base?
Conversation
…onent Signed-off-by: Grigory Vodyanov <[email protected]>
Co-authored-by: Ferdinand Thiessen <[email protected]> Signed-off-by: Grigory Vodyanov <[email protected]>
Co-authored-by: Ferdinand Thiessen <[email protected]> Signed-off-by: Grigory Vodyanov <[email protected]>
Co-authored-by: Ferdinand Thiessen <[email protected]> Signed-off-by: Grigory Vodyanov <[email protected]>
// If no links are defined, and collapsing is enabled, we want it to collapse | ||
if (this.to === null && this.href === null && this.collapsible === true) { | ||
this.toggleCollapse() | ||
event.preventDefault() |
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.
BTW why is this needed?
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.
@susnux Sorry for the late reply, but it is needed because there are multiple actions that clicking an AppNavigationItem
could trigger. If a link is defined, you go to the link, if not and the component is collapsible, it would collapse.
☑️ Resolves
🖼️ Screenshots
No graphical changes