timdeschryver / ng-signal-forms

105 stars 7 forks source link

touchedState #37

Open pgg opened 4 months ago

pgg commented 4 months ago

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
}
timdeschryver commented 3 months ago

Sorry I don't have experience with ionic. I suppose it's something on that end since "normal" HTML inputs work fine.