timdeschryver/ng-signal-forms

touchedState

pgg opened this issue · 1 comments

pgg commented

likely more an ionic issue, but touchedState stays UNTOUCHED in latest ionic 7 ion-input after input interaction, works fine when normal html input is used . . .

  form = createFormGroup({
    field: createFormField('', {
      validators: [Validators.required()],
    }),
  });
      <ion-input
        label="field"
        labelPlacement="stacked"
        ngModel
        [formField]="form.controls.field"
      />
form state:
{
  "state": "VALID", 
  "dirtyState": "DIRTY", 
  "touchedState": "UNTOUCHED", 
  "valid": true
}