Skip to content

The notEmpty constraint is not working for Text type #866

@markfarkas-camunda

Description

@markfarkas-camunda

Describe the Bug

I created an element-template and realized that the notEmpty constraint is not working for Text type. The field is not indicated with the red outline and there is no error message when it is empty.

image

Steps to Reproduce

Best way to reproduce is to just use the template below, and look at the "Query/Mutation" text field.
graphql-connector-template.zip

Otherwise you can reproduce it by

  1. creating a new element template
  2. set the type to text
  3. add the
"constraints": {
    "notEmpty": true
}

part, or even add the "optional": false

Expected Behavior

When the text field is empty there should be a red outline and an error message saying: Must not be empty.

Environment

  • WebModeler in Chrome, and even in the Desktop Modeler
  • OS: Windows 11
  • Library version: latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions