Open marstamm opened 6 months ago
When I have a template with a Boolean field, it persists as '' (empty string) when I apply it. Only after I select and unselect it is false persisted.
''
false
This leads to inconsistent behavior when I use the property in a condition, like
"condition": { "property": "myBooleanProp", "equals": false }
When first applying a Boolean property, assume a default value of false if none is given.
'' == false
Discovered in https://github.com/bpmn-io/bpmn-js-element-templates/issues/84#issuecomment-2076810255
Is your feature request related to a problem? Please describe.
When I have a template with a Boolean field, it persists as
''
(empty string) when I apply it. Only after I select and unselect it isfalse
persisted.This leads to inconsistent behavior when I use the property in a condition, like
Describe the solution you'd like
When first applying a Boolean property, assume a default value of
false
if none is given.Describe alternatives you've considered
false
'' == false
)Additional context
Discovered in https://github.com/bpmn-io/bpmn-js-element-templates/issues/84#issuecomment-2076810255