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 preselected disabled option is not shown #3541

Closed
mneciunas opened this issue Jan 16, 2023 · 0 comments · Fixed by #3770
Closed

Dropdown preselected disabled option is not shown #3541

mneciunas opened this issue Jan 16, 2023 · 0 comments · Fixed by #3770
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@mneciunas
Copy link

mneciunas commented Jan 16, 2023

Describe the bug

If dropdown is preselected with disabled option, then value is not shown.
Use case for this when preselected value comes from backend api, but use should not be able to select the option.

Reproducer

https://codesandbox.io/s/nifty-maria-6ornsb?file=/src/App.vue

PrimeVue version

3.22.2

Vue version

3.x

Language

ALL

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

image

Dropdown 2 should display value "Disabled Option"

@mneciunas mneciunas added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 16, 2023
@bahadirsofuoglu bahadirsofuoglu 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 Mar 19, 2023
@bahadirsofuoglu bahadirsofuoglu self-assigned this Mar 19, 2023
@bahadirsofuoglu bahadirsofuoglu added this to the 3.26.0 milestone Mar 19, 2023
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