Skip to content

Angular - Formcontrol is always touched #2458

Open
@kasar-NTT

Description

@kasar-NTT

Describe the bug

Having any field inside json forms even if it's from angular material renderers or custom component renderers they are always touched, even if the user did not do any action. This can be seen from the: form.touched property that comes from the extended JsonFormsControl class

Expected behavior

The touched property should initially be false when the user did not do any action on the component and turn to true when the user does any action on it

Steps to reproduce the issue

  1. Checkout and start the angular seed: https://github.com/eclipsesource/jsonforms-angular-seed
  2. On the template of: src/app/custom.autocomplete.ts add the: {{ form.touched }} to verify

Screenshots

Image

Image

Which Version of JSON Forms are you using?

v3.5.1

Package

Angular Bindings

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions