rcarcasses / vue-cytoscape

cytoscape.js now inside vue.js
https://rcarcasses.github.io/vue-cytoscape
MIT License
96 stars 34 forks source link

Context menu not opening from example #36

Closed peterclemenko closed 5 years ago

peterclemenko commented 5 years ago

Hey, I'm trying to open the context menu based on the documentation example in a nuxt/vuetify project and i click and the context menu doesn't open. It appears as though cxtmenu from cytoscape also has the same problem and I'm not sure why it's not popping up the context menus.

peterclemenko commented 5 years ago

So here's the code

https://gist.github.com/aoighost/7ebb5b6d2312bfbcd12b91003590d78a

it renders the graph, but I also noticed it doesn't console log the id of the node when I click nodes.

peterclemenko commented 5 years ago

OK, so I partially solved the problem. I didn't add pre config and after created to cytoscape in the template. That being said, now it's saying that context menu already exists in the prototype and errors out.

peterclemenko commented 5 years ago

Error: Can not register contextmenu for core since contextmenu already exists in the prototype and can not be overridden

peterclemenko commented 5 years ago

Just found the answer here: https://github.com/cytoscape/cytoscape.js-panzoom/issues/19

It's working now.

rcarcasses commented 5 years ago

good to hear that you figured out by yourself :)