Skip to content

Consider adding hasError function for signal forms #63905

@haigha106

Description

@haigha106

Which @angular/* package(s) are the source of the bug?

forms

Is this a regression?

No

Description

using the new Signal Forms

when adding a mat-error component to a mat-form-field inside a @for loop and then an @if statement the mat-error is incorrectly placed

Image

as below

Image

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-mbrurxfu?file=src%2Fapp%2Fapp.html

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)


Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions