bpmn-io / bpmn-js-element-templates

The element template extension for bpmn-js
MIT License
5 stars 3 forks source link

Boolean field with feel required breaks the editor #70

Closed marstamm closed 8 months ago

marstamm commented 8 months ago

Describe the Bug

Adding the property

      {
        "label": "Demo",
        "value": false,
        "type": "Boolean",
        "feel": "required",
        "binding": {
          "type": "zeebe:input",
          "name": "foo"
        }
      }

will break the feel editor

Steps to Reproduce

  1. add the property to template
  2. apply template
  3. Try to edit field. It is broken

Expected Behavior

The FEEL editor shows =false and is editable

Additional info

Reported here: https://github.com/camunda/camunda-modeler/pull/4154#issuecomment-1963706609 related to https://github.com/camunda/camunda-modeler/issues/3622

Environment