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:
parent
6214772b85
commit
56eb34cc82
|
@ -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);
|
||||
|
|
|
@ -492,6 +492,7 @@ describe('features - label-editing', function() {
|
|||
canvas: { deferUpdate: false }
|
||||
}));
|
||||
|
||||
|
||||
it('should initialize categoryValue for empty group', inject(
|
||||
function(elementRegistry, directEditing) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue