Delete elements selected with lasso tool - is there any event I can subscribe to?


I’m having an issue trying to catch multiple (or single) bpmn elements being removed from the modeler when previously selected with lasso tool. I was trying to subscribe to ‘shape.remove’ event, which works fine when I select an element and press delete but doesn’t work if I do the same but select the element using lasso tool. Is there any other event I could subscribe to in such case?


Deleting shapes, even if selected with the lasso tool, should fire a ‘shape.remove’ event for each of the shapes deleted. Are you able to share your approach via CodeSandbox? This way it will be easier for us to help you.

I’ve just tried to reproduce this when building CodeSanbox example and indeed it works the way you described. It has to be something on our side then :slight_smile: thanks for your help

1 Like