Validators for input type="radio" don't work.
GrzegorzStanczyk opened this issue · comments
Control is valid when Validators.required is set.
I'm submitting a...
[X] Bug report
Current behavior
Radio control is always valid
Expected behavior
To work same as native FormControl
Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/angular-ivy-emnm3t?file=src%2Fapp%2Fapp.component.ts
Switch FormControl between @angular/forms and @ngneat/reactive-forms and look at valid/invalid status.
What is the motivation / use case for changing the behavior?
Validate the radio control
Environment
Angular version: ^11.0.8
Browser:
- [x] Chrome (desktop) version XX
For Tooling issues:
- Node version: v14.16.0
- Platform: Windows
Hi,
@NetanelBasal what version of Angular did You use and what browser? I tested it on the newest versions of Chrome, Edge, Chrome canary, and Firefox. I will check Angular 10 tomorrow, maybe that will be it.
Did it work all right for You on stackblitz provided?
I tried it on our playground here.
I have the same result in stackblitz, it is more; the same result for input text type, but I replicated it in a local project and it works fine.
Browser: Opera
Closing this issue for now.