Skip to content

Allow c.markAllAsDirty() like c.markAllAsTouched() for AbstractControl class #55990

@L-X-T

Description

@L-X-T

Which @angular/* package(s) are relevant/related to the feature request?

forms

Description

Hi!

Angular's AbstractControl provides markAllAsTouched().

Sometimes we would prefer showing error messages on dirty - not on touched - so it would be very useful to have that option built in into the core as well.

This feature request was originally proposed in an other issue more than 7 years ago: #11774 (comment)

But for some strange reason it's still not available. Can we please add this?

❤️ Alex T.

Proposed solution

Allow c.markAllAsDirty() like c.markAllAsTouched() for AbstractControl class.

Alternatives considered

Using custom solutions as mentioned in #11774.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions