[#7371] Nested ContextMenu

Tags: #<Tag:0x00007efc61584418> #<Tag:0x00007efc615842d8>

Hello,

I am trying to create a nested context menu using a custom context menu documentation as provided on the below link:
https://handsontable.com/docs/8.1.0/demo-context-menu.html
I am using version 5.0.0
My requirement is on the right-click context menu open and shows the below options:
Number Formats -> US Formats -> Two Decimals, Four Decimals

The issue is I can get click event up to US formats but I am not getting click event for Two decimals. so how can I get the click event of third level context menu?

Also If I click on a third level item then it closes only up to the second level but the main context menu is not close automatically.
(i.e: in my case, it close up to US Formats but Number Formats still remains open)

Thanks & Regards
Vishal

Hi Vishal,

can you share your later progress in a demo? Here’s a basic demo that you can use to add your settings http://jsfiddle.net/AMBudnik/25sqbc3e/

Hi,

Please find below link of demo.
https://jsfiddle.net/yk387anr/
it’s not printing log for third level menu
(i.e Submenu->sub1->sub1)
it’s printing log up to
(i.e Submenu->sub1)

so my point is callback is not working for third level context menu item. and also not closing.

Regards
Vishal

Hi @vishal.joshi

Thank you for sharing the demo. I replicated the same behavior. The log() is not executed.
I will investigate that issue and update you on Monday/Tuesday.

Thank you for patience @vishal.joshi
This is definitely a bug. It seems that the menus for certain levels become inactive.
Tomorrow, I will report it on our Github board as the issue related to the inactive submenu is this one https://github.com/handsontable/handsontable/issues/3550 and it does not fully describe the issue that you’ve mentioned.

Sorry for keeping you waiting. It seems that the logic for multi-level submenus is insufficient. It is possible to created submenus but they do not execute the code inside.
I’ve reported the need to support those menus here https://github.com/handsontable/handsontable/issues/7371 and will update you as soon as we add it to the official version of Handsontable.