Using v0.0.3, I'm getting multiple TypeError when opening the example insid

Using v0.0.3, I’m getting multiple TypeError when opening the example inside a vaadin 14 application. Any idea what I’m missing?
18405721.png
18405724.png
18405727.png

Problem seems to be related to launching it inside a dialog. Putting it on a view seems to work just fine.
Not sure why it doesn’t work on a dialog.

The current version still uses a fixed id (see source code on github) in the Cytoscape class. The id is set to “cy”. The Javascript part looks for document.getElementById(‘cy’) to attach the cytoscape into the dom tree of the website. That’s why it doesn’t work on a dialog … currently.

Thanks! dialog support would be cool, but I can live without for the moment. Is this also why same view cannot be created twice? Seems that some kind of “unregister” the ctxmenu and other parts is needed. (I get same errors when reopening the view class)

Yes, unfortunately this is the reason … as of now. You can only have it once in a view. I’ll work on this.

Support for Dialog would be great… I think it could also be a timing issue. When I initialize and add cytoscape via Button after Dialog is completely rendered it seems to work fine.