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 Nico Rehwaldt
parent 6214772b85
commit 56eb34cc82
2 changed files with 2 additions and 1 deletions

View File

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

View File

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