Skip to content

Touched state does not propagate to the parent control. #320

@mdetweilerk

Description

@mdetweilerk

When using a sub or root component inside a parent form, the touched state does not propagate to the parent control.

If I type into a sub-form input and then blur it, the inner FormControl inside the sub-form becomes touched as expected, but the parent control that holds the sub-form value remains untouched.

The easiest example is using the address-control (from the ngx-sub-form main example) in my app.
<address-control [formControl]="controls.address">
Filling the fields of the address control (and then clicking out) results in controls.address.touched = false.

I would expect controls.address.touched to equal true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions