primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Multiselect - Not possible to use 'value' field in options.

Open roman-bychkov opened this issue 1 year ago • 4 comments

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

roman-bychkov avatar Jan 22 '25 19:01 roman-bychkov

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

wildbsiu avatar Jan 23 '25 05:01 wildbsiu

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.

rekna1 avatar Feb 12 '25 10:02 rekna1

It's still an issue in v19.0.10

gzahradnik avatar Mar 25 '25 09:03 gzahradnik

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!

github-actions[bot] avatar Mar 19 '26 00:03 github-actions[bot]