jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.65k stars 722 forks source link

[Bug] Right click when creating a connection. #411

Closed xaimepardal closed 2 years ago

xaimepardal commented 2 years ago

Right-clicking while creating a new connection in the "editor" allows you to access the delete connection option. The browser returns an unhandled error.

A possible improvement would be to listen to the "create connection" event and as long as this connection is not created or canceled, the option to delete connection with right click will be disabled.

The error in console.

Uncaught TypeError: Cannot read properties of undefined (reading 'slice') at i.click (drawflow.min.js:1:7493)

jerosoler commented 2 years ago

Thanks @xaimepardal

I look to fix it.

jerosoler commented 2 years ago

Fix in version 0.0.58 ;)