robin1liu / vue-mermaid

flowchart of mermaid with vue component
MIT License
126 stars 25 forks source link

NodeClick prepend "s" to the id #6

Open gioppoluca opened 4 years ago

gioppoluca commented 4 years ago

Managed to make click work, but the ID that get returned is not "1" as expected but "s1" any hints on why?

via4e commented 4 years ago

Managed to make click work, but the ID that get returned is not "1" as expected but "s1" any hints on why?

Same question, bro... temporary work for me, but unwanted editNode(nodeId) { nodeId = nodeId.replace(/[^\d]/g, '')