Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radiobutton in Model driven forms is not handling checked state correctly (PrimeNG 10.0.0) #9330

Closed
peteng-1 opened this issue Sep 29, 2020 · 1 comment

Comments

@peteng-1
Copy link

[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35


**Plunkr Case (Bug Reports)**
https://stackblitz.com/edit/primeng-radiobutton-demo-xj3pfd?file=src/app/app.component.html

**Current behavior**
Using PrimeNG 10.0.0 and model driven forms the radiobutton component is not un-checking the radiobutton when another radiobutton gets checked. The value in the form gets changed correctly.

**Expected behavior**
Only the currently checked radiobutton should be rendered as checked.

**Minimal reproduction of the problem with instructions**
A simple example is found in the stackblitz above. 

A simple formgroup with only one property is created at init. Then there's 2 radiobuttons to change the testvalue. Checking the first radio works fine. Checking the other radio also sets the correct value, but the first radio is still checked.

Using ngModel works fine.

* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Tested in Chrome, Safari
 
@peteng-1
Copy link
Author

[Duplicate] Already reported. See issue #9162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant