newcat / baklavajs

Graph / node editor in the browser using VueJS
http://baklava.tech
MIT License
1.57k stars 116 forks source link

Emitting openSidebar display empty sidebar #264

Closed alexisrolland closed 1 year ago

alexisrolland commented 1 year ago

I have a Vue component to display custom options of a node, and I have another Vue component to display custom options in the sidebar of the node. When the node is added to the graph, I would like the sidebar to be displayed automatically. So I emit the event openSidebar when mounting the custom options of the node:

mounted() {
  this.$emit("openSidebar");
}

This displays the sidebar, but the sidebar is empty instead of showing the options from its Vue component. Am I doing anyting wrong?

alexisrolland commented 1 year ago

Duplicate