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

Select: Selecting 0 option shows empty in select #6437

Closed
felldo opened this issue Sep 19, 2024 · 0 comments · Fixed by #6484
Closed

Select: Selecting 0 option shows empty in select #6437

felldo opened this issue Sep 19, 2024 · 0 comments · Fixed by #6484
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@felldo
Copy link

felldo commented Sep 19, 2024

Describe the bug

A select with numbers as options [0,1,2,3].

Selecting 1 shows 1 as the selected value:
image

Selecting 0 shows empty as the selected value:
image

It is possible to bypass this behavior by converting the number to a string so the options array looks like: ['0','1','2','3']

Reproducer

https://stackblitz.com/edit/vitejs-vite-upuyuz?file=src%2FApp.vue

PrimeVue version

4.0.7

Vue version

4.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@felldo felldo added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 19, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.1.0 milestone Sep 27, 2024
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants