AutoComplete: Primitive value 0 or reference value 0 does not display correctly #4749
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
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
Can also be reproduced on the PrimeVue website
https://primevue.org/autocomplete/
Same behavior applies to Dropdown component see:
#4748
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
Step 1: Have a AutoComplete with primitive values from 0 to 10
Step 2: Click open autocomplete suggestions
Step 3: Click option with value 0
Step 4: Option is not selected
Expected behavior
The text was updated successfully, but these errors were encountered: