open-source-labs / Svelvet

🎛 A Svelte library for building dynamic, infinitely customizable node-based user interfaces and flowcharts
https://svelvet.io
2.56k stars 165 forks source link

Right click menu is buggy #499

Open tarakciemre opened 8 months ago

tarakciemre commented 8 months ago

When right clicked, the right-click menu is displayed in a buggy manner and you cannot change properties of nodes. This is true for right-clicking on a component on the official svelvet website demonstration as well

devnull03 commented 3 months ago

yeah I also have the same issue, there is no way to disable the right-click menu it seems like either

devnull03 commented 3 months ago

Okay i just figured out, the right-click menu is just another Node and you can use the editable={false} attribute on a Node to disable the menu, wrap it with a div to detect a right-click event and create your own.