Skip to content

[Input Group] Signal Forms: success state doesn't return when typing after refocus #17648

Description

@viktorkombov

Description

With Signal Forms, once an igxInput has been blurred and focused again, typing no longer brings back the success state. The input stays INITIAL even though the field is valid. With Reactive Forms the same steps show VALID.

For the signal backend NgControlAdapter.statusChanges re-emits only when valid, pending, required, disabled, dirty or touched change. Typing into a field that is already valid, dirty and touched changes none of them, so updateValidityState() doesn't run. Reactive Forms emits statusChanges on every value change.

Happens on master.

Framework

Angular

Angular Version

22.1.x

Ignite UI for Angular Version

22.2.x

Component / Area

Input Group

Browser

Chrome

Operating System

Windows

Command Not Working

Steps to Reproduce

  1. Add the following to a dev sample:
public model = signal({ name: '' });
public f = form(this.model, p => validate(p.name, ({ value }) => value() ? undefined : { kind: 'empty' }));
<igx-input-group>
    <input igxInput [formField]="f.name" />
</igx-input-group>
  1. Run the sample.
  2. Click into the input and type one character. The input shows the success state.
  3. Click outside the input. The success state goes away, as expected on blur.
  4. Click into the input again and type another character.

Actual Result

The input stays in the initial state, no success style. Same after typing more characters.

Expected Result

The input shows the success state while focused, as it does after the first edit and as a Reactive FormControl with the same rule does.

Reproduction URL

No response

Attachments

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions