I try to add a context menu on a coordinate container with some other component inside it.
I would like to trigger the context menu on left or right mouse click on the container and on all the components inside it.
I use an onClick event with
with Prevent Default option checked.
For the left mouse click it is ok for the container and all its components.
But for the right mouse click, it only works if I right click in the container but not on its components.
In that case the chrome standard menu is displayed.
Is it a bug or did I missed something ?
requestContextMenu() is not an available component method. There is no scripting around the Context Menu at this time - it is completely driven by the properties of the component.
Additionally, we just recently (today) identified an issue where context clicks are not propagating from components to their ancestor containers. We hope to have a fix in soon - ideally before the 8.1.26 RC next week.
Thanks, I stay tuned to test this fix.
In my use case, the contextMenu will be enabled only on the main coordinate container in order to be displayed when the user clic in the container or in all the components inside the container.