vite-vue-bpmn-process
vite-vue-bpmn-process copied to clipboard
Why is your CustomRules elements.delete being called when you click an element as well as when you try to delete it?
I'm trying to modify the behaviour of your CustomRules here
https://github.com/moon-studio/vite-vue-bpmn-process/blob/ba2b936157e35af86fa4e1b628b41bafd7dd4bf5/src/additional-modules/Rules/CustomRules.ts#L13
Currently it seems like this code is being executed, not only when you attempt to delete an element but every time you select any element.. which is problematic because I want to intercept the deletion of an element at the moment someone tries to delete it but currently I cannot seem to differentiate between when a user actually tries to delete something, and when they have just clicked on it (selected it).
Can you explain this behaviour, and possibly tell me how I can "do something" only when a user is actually attempting to delete something?
Many thanks!