feat(modeling): do not trigger direct editing on newly created group

The first canonical operation is to resize the group
to the respective size, not to assign a group label.
This commit is contained in:
Nico Rehwaldt 2021-12-07 22:23:08 +01:00 committed by fake-join[bot]
parent fb6dca383c
commit 9f483adb42
2 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,7 @@ export default function LabelEditingProvider(
function activateDirectEdit(element, force) {
if (force ||
isAny(element, [ 'bpmn:Task', 'bpmn:TextAnnotation', 'bpmn:Group' ]) ||
isAny(element, [ 'bpmn:Task', 'bpmn:TextAnnotation' ]) ||
isCollapsedSubProcess(element)) {
directEditing.activate(element);

View File

@ -492,6 +492,7 @@ describe('features - label-editing', function() {
canvas: { deferUpdate: false }
}));
it('should initialize categoryValue for empty group', inject(
function(elementRegistry, directEditing) {