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

Component: Checkbox; Array value not working when using with formControlName #15185

Closed
KevinHetzelGFL opened this issue Mar 28, 2024 · 0 comments · Fixed by #15320
Closed

Component: Checkbox; Array value not working when using with formControlName #15185

KevinHetzelGFL opened this issue Mar 28, 2024 · 0 comments · Fixed by #15320
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@KevinHetzelGFL
Copy link

Describe the bug

If i use the checkbox with formControlName, only the latest option is stored in the form control. It should be an array of all selected options.

Environment

it is happening everywhere

Reproducer

https://stackblitz.com/edit/9ncv5u-usof8j?file=src%2Fapp%2Fdemo%2Fcheckbox-reactive-forms-demo.html

Angular version

17.0.0

PrimeNG version

17.12.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.13.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@KevinHetzelGFL KevinHetzelGFL added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 28, 2024
volvachev added a commit to volvachev/primeng that referenced this issue Apr 19, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 26, 2024
@cetincakiroglu cetincakiroglu added this to the 17.15.0 milestone Apr 26, 2024
nbrown-ScottLogic pushed a commit to nbrown-ScottLogic/primeng that referenced this issue May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants