Does this library have an event that triggers on node deletion? #1176
Unanswered
DoaaRadwan
asked this question in
Q&A
Replies: 1 comment 20 replies
-
There is an event for changes, called const { onNodesChange } = useVueFlow()
onNodesChange(changes => {
changes.forEach(change => {
console.log(change.type) // 'position' | 'add' | 'remove' | 'select' | 'dimensions'
})
}) |
Beta Was this translation helpful? Give feedback.
20 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there an event that triggers on node deletion, pressing the
backspace
and whatever the delete key is set to? likeonNodeDelete
or something similar.We need to implement additional logic on deletion, so currently we have the delete key disabled and rely on a custom delete button on our modals but it would be really helpful to the users to see the same behaviour of deletion whether they press the keyboard key or click the custom delete button.
Beta Was this translation helpful? Give feedback.
All reactions