question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In nested menu allow action on nested sub menu parent

See original GitHub issue

In a given context menu:

item 1
item 2 > sub-item 2.1
         sub-item 2.2

it is possible to attach actions only to items: item 1, sub-item 2.1, sub-item 2.2

It should be possible to attach action also on “item 2” (which is a parent to nested submenu with “sub-item 2.1” and “sub-item 2.2”)

PS Thanks for your work!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
josetairacommented, Jul 9, 2017

@krzysieki @muzuro this should be fixed as of 5e03256d40c7af4eed50eea5014143dcfb45f246

Just specify both click and children for the new object-based implementation.

1reaction
krzysiekicommented, Jan 3, 2017

Please consider scenarios:

example 1. We have items and categories in our system. Categories can contain sub-categories (tree structure). Now in UI there is a function to attach a category to an item. Function can be achieved via context menu: right click on item -> list of categories in context menu -> now we can choose one of categories (even if it has children) or subcategories.

example 2. We have files and folders. Folders are structured in tree. And there is a function to move files between folders. Right click on file -> context menu “move to >” -> now we have list of destination folders, but some of them can contain subfolders.

I know that described scenarios are not perfect UI/UX solutions but believe me that these are real use cases 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS-Nested submenu display same level as parent
1 Answer 1 ... This makes it so the absolute positioning of your sub-menu is relative to the list-element, not the entire list....
Read more >
Nested submenus prevent previous submenu link to be opened
In theory both menu and submenu should be clickable (expected). The first one goes to https://google.com/ (expected, not working) the second one ...
Read more >
Targeting Menu Elements with Submenus in a Navigation Bar
Recently, I was working on a dropdown navigation bar and wanted to differentiate the menu items which contained sub menus from those that...
Read more >
Submenu - Ariakit
Submenu Rendering nested Menu components to create a dropdown menu with submenus that open when hovering over the parent menu item.
Read more >
Menus and actions - Components - Human Interface Guidelines
You might consider creating a submenu when a term appears in more than two menu items in the same group. For example, instead...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found