Display labels of selected items in filtered Multiselect component #88
Replies: 2 comments 5 replies
-
If you can create a StackBlitz reproducer then please open a GitHub Issue with your reproducer. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hmmm it doesn't seem to be happening on the showcase: https://primereact.org/multiselect/#filter |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to use a filtered multiselect component with the data being fetched from an API instead of hardcoded.
In my code, typing in the filter field performs an API call and fetches data to be displayed in the options.
However, I have noticed that when the options are filtered, if a selected option is filtered out so no longer available in the list of options to select, the label is showing 'null' instead of the object field. I came to the conclusion that the labels are being fetched from the list of the options instead of the list of selected items.
I think it would be better to display labels based on the list of already selected items.
Beta Was this translation helpful? Give feedback.
All reactions