Multiselect - Not possible to use 'value' field in options.
Describe the bug
Since v17.18.13 multiselect not allow to use value field name in multiselect options. On v17.18.12 It works as expected.
I guess it's because of this changes: https://github.com/primefaces/primeng/pull/16652
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/bmzcbxwv?file=src%2Fapp%2Fmulti-select-reactive-forms-demo.html
Environment
dev
Angular version
17.18.13
PrimeNG version
v17 (LTS Only)
Node version
22
Browser(s)
Chrome
Steps to reproduce the behavior
Expected behavior
value field name should works as before
I have seen similar issue with Autocomplete. When dealing with objects, can't use value named key in the objects. Selected item in such case doesn't return whole object as expected. However if I simply rename the value field to something else - it works perfectly fine.
https://github.com/primefaces/primeng/issues/17469
I am having same issue (https://github.com/primefaces/primeng/issues/17649) with items with a value property in a regular p-autocomplete, I have closed my issue to be handled by this issue.
It's still an issue in v19.0.10
This issue has been automatically marked as stale due to a lack of activity. If this issue is still relevant to you, please leave a comment so we can keep it open. We apologize for not being able to prioritize it sooner. If you have any new information or questions, please share them in your comment!