I’ve implemented a widget that allows to remove a template from a single selected element in the canvas. It works as expected for tasks and start events, but not for sequence flows. For the latter, it just doesn’t do anything.
Here is a snippet on how we do that:
modeler.get('elementTemplates').removeTemplate(element);
There is no error message or anything, it just doesn’t remove the template.
Is that a known issue?