Hey @weilei, you need to make an event handle, like this:
First of all, you need to inject eventBus inside the provider and use this method below and import the isAny method of ModelingUtil if you need to choose what type of task you need to disable the double click.
import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil';
export default function CustomPropertiesProvider(eventBus, propertiesProvider) {
eventBus.on('element.dblclick', 10000, (context) => {
var element = context.element;
if (isAny(element, ['bpmn:StartEvent', 'bpmn:ServiceTask', 'bpmn:Task', 'bpmn:EndEvent'])) {
return false;
}
});
// YOUR CODE
}
CustomPropertiesProvider.$inject = [
'eventBus',
'propertiesProvider'
]