You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 14, 2021. It is now read-only.
As you can see, the submenu is modified in the "beforeOpen" function - and this seems to remove the submenu completely.
The context of this is a multi-user interface, where I would like to offer the users valid actions only (instead of offering all actions and erroring out if the action became invalid in the meantime by other user's action), therefore the need for modification at the click-time.
I also tried to modify the "ul" which is the base for the context menu, but here I face other issues:
when trying to replace the whole menu in the "beforeOpen", the menu does not show up at all
when replacing only the dynamic part, the submenu title is removed (and replaced by the #identifier of the "
" element...)
when replacing the dynamic part and then explicitly setting the title (by calling "setEntry", "entry", "title" again), the title is shown as expected but the behaviour breaks: I then cannot click on the submenu item without explicitly clicking on the submenu first.