Skip to content
New issue

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

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

Already on GitHub? # to your account

PrimeNG p-radiobutton : UI not working inside reactive form #17747

Open
1 of 4 tasks
alexxela66 opened this issue Feb 21, 2025 · 0 comments
Open
1 of 4 tasks

PrimeNG p-radiobutton : UI not working inside reactive form #17747

alexxela66 opened this issue Feb 21, 2025 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@alexxela66
Copy link

Describe the bug

The p-radioButton component is not working properly when used inside a reacive form.
When I check a radio, same radio are checked in other formArray.

Image

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/github-ho4qhv7x?file=src%2Fapp%2Fapp.component.html

Environment

Primeflex: 3.3.1

Angular version

19.0.7

PrimeNG version

v19

Node version

v22.13.0

Browser(s)

Chrome 133

Steps to reproduce the behavior

Click on a radiobutton
You can see 2 radiobutton checked (the one you check and the same radiobutton on the other formarray)

Expected behavior

Click on a radiobutton
You can see 1 radiobutton checked (the one you check and the same radiobutton on the other formarray is not checked)

It seems to be a bug and even if both are checked in UI and checked="true", when I check value in TS, just one is set...

@alexxela66 alexxela66 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 21, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant