Dropdown: Primitive value 0 or reference value 0 does not display correctly #4748
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Dropdown component does not display the correct label when either the selected option has a primitive value of 0 or a reference value of 0
Same behavior applies to the AutoComplete component see:
#4749
Earlier issue: #4085
Reproducer
https://codesandbox.io/p/sandbox/primevue-primitive-0-dropdown-forked-nd58jc?file=%2Fsrc%2FApp.vue%3A53%2C28
PrimeVue version
3.39.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Steps to reproduce the behavior
Open dropdown
Select option with value 0
Expected behavior
Expected behavior
The selected option should be displayed correctly
The text was updated successfully, but these errors were encountered: