Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown: Primitive value 0 or reference value 0 does not display correctly #4748

Open
jkocyigi opened this issue Nov 3, 2023 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@jkocyigi
Copy link

jkocyigi commented Nov 3, 2023

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
image
image

Expected behavior

Expected behavior
The selected option should be displayed correctly
image

@jkocyigi jkocyigi added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant