feat: 修复流程节点点击线条后修改名称崩溃问题

This commit is contained in:
GAOANG
2024-07-26 19:45:26 +08:00
parent e12a265559
commit 64f223971d

View File

@ -187,8 +187,10 @@
function addModelerListener() {
bpmnModeler.on('shape.added', (e: any) => {
let shape = e.element ? bpmnModeler.get('elementRegistry').get(e.element.id) : e.shape;
if (shape.type !== 'label') {
changePanel(shape.type, shape.id);
bpmnCanvas.elementEventName = 'added';
}
});
bpmnModeler.on('selection.changed', (e: any) => {
bpmnCanvas.elementEventName = 'change';