Requesting a onEdgeDelete event #1921
-
| Requesting a onEdgeDelete event that triggers when a edge gets deleted. the event should also contain the entire deleted edge and it's data | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
| You can already listen to that with  An example is available here: https://vueflow.dev/examples/confirm.html Also read this section as it's related: https://vueflow.dev/guide/controlled-flow.html | 
Beta Was this translation helpful? Give feedback.
-
| thanks for the quick answer! yes, you can listen to edge deletions with onEdgeChange but as far as I can see you can't access the edges data anymore because it is already deleted once the event fires. I have worked around the issue by using apply-default="false" and handeling the changes myself. would just be nice if there was an event that would return the removed edge | 
Beta Was this translation helpful? Give feedback.
You can already listen to that with
onEdgesChangeAn example is available here: https://vueflow.dev/examples/confirm.html
Also read this section as it's related: https://vueflow.dev/guide/controlled-flow.html