You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ı am getting the array like in the image. The first object in the array which label and value are empty. So, ı expect multiselect dropdown should not show empty option . See below image:
Environment
Ubuntu and docker
Reproducer
No response
Angular version
16
PrimeNG version
16.9.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.17.1
Browser(s)
Chrome
Steps to reproduce the behavior
Create a list with one empty label and empty value
Check multiselect
Empty option will be seen
Expected behavior
if array member has empty label, the dropdown should not show it
The text was updated successfully, but these errors were encountered:
It's made by design, not a bug. Users use the component with values, not empty objects. Instead of updating the component, you can simply remove the empty object and use the component.
I cant change empty object array since the array is dynamic and being used in many places. I just thought logically if label comes with no value, dropdown shouldnt show it or at least there should be an built-in option to choose such a thing. Anyway, ı got your response. Thank you Mr Çetin Bey
Describe the bug
ı am getting the array like in the image. The first object in the array which label and value are empty. So, ı expect multiselect dropdown should not show empty option . See below image:
Environment
Ubuntu and docker
Reproducer
No response
Angular version
16
PrimeNG version
16.9.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.17.1
Browser(s)
Chrome
Steps to reproduce the behavior
Expected behavior
if array member has empty label, the dropdown should not show it
The text was updated successfully, but these errors were encountered: