Closed ghost closed 1 year ago
Hi @mrebrii , thank you for opening this issue. The way element templates currently work. invalid entries are not committed to the diagram. So when you safe or switch elements, the last valid value is kept.
I agree that this is unexpected behavior and invalid values might be wanted (e.g. empty values). I will move this item to the backlog. This behavior is expected to change with the implementation of https://github.com/camunda/camunda-modeler/issues/3357
Describe the Bug
The modelerer doesn't set an empty value to the field after being set.
Steps to Reproduce
The 1st case
The first case with all constraints on the field: notEmpty: false, pattern for numbers and maxLength. As You can see the value isn't set as empty
Steps to reproduce
Bearer Token
and enter some value (Doesn't matter what it'll be as it's only for not empty constraint)Create Worksheet
The 2st case
The second case with constraints on the field: notEmpty: false, pattern for numbers and. As You can see I cannot set empty index despite pattern is
^([0-9]*$)
Steps to reproduce
Bearer Token
and enter some value (Doesn't matter what it'll be as it's only for not empty constraint)Create Worksheet
The 3st case
The third case with only one constraint: notEmpty: false. As You can see in this case I'm able to set empty value.
Steps to reproduce
Bearer Token
and enter some value (Doesn't matter what it'll be as it's only for not empty constraint)Create Worksheet
Expected Behavior
In all cases I'm able to set an empty value
Environment