Click doesn't work in context menu

I’m doing my diagram editable with context menu… I took this example: HTML Context Menu

I did the same, the problem is when I click for example the option “Cut” in the contextMenu, I can’t do any function… I try the pointerdown event like in the example, and also the click event

I’m using vue 2 and this is part of my code:

image

I try changin only pointerdown by a click, also setting buttons instead of li, but still doesn’t work, it’s like the options inside the context doesn’t recognize any event

image
This are my functions, I’m using Test only to test the event happens, but still doesn´t work

We don’t know much about Vue, but it seems like you may need to use the v-on directive to handle events. And the cxcommand function would be a method on the component.

This doesn’t seem to be a GoJS question since the context menu is being handled in Vue. GoJS is just showing/hiding that HTML as you direct it.