I need to disable the name field of the tasks, when I drag the component from the palette to the diagram, it opens in editing mode to enter the value of the name field, I don’t want this behavior, with double click I managed to solve it, it is possible to do the same by drag and drop into the diagram? Which event should I use?
var priority = 10000;
eventBus.on('element.dblclick', priority, function (event) {
const { element } = event;
if (isAny(element, ['bpmn:Task'])) {
return false;
}
});
eventBus.on('element.changed', priority, function (event) {
const { element } = event;
if (isAny(element, ['bpmn:Task'])) {
return false;
}
})