vaadin / context-menu

Vaadin ContextMenu
Apache License 2.0
11 stars 21 forks source link

Nested ContextMenuItems not work properly #82

Closed radoslawdabrowski closed 6 years ago

radoslawdabrowski commented 6 years ago

When I add MenuItem to existing MenuItem as sub menu items, I can only trigger parents items by ContextClickEvent. When I trigger ClickEvent(left mouse button), the submenu will show for a second and turn off all the ContextMenu item. Please explain why you implement it that way.

elmot commented 6 years ago

Submenus are open "on hover". You do not need to click the parent at all. If an item has a submenu, please do not add Command to it, provide null instead

elmot commented 6 years ago

Fixed in #91 by adding ContextMenu.addItem(String)