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 & MultiSelect: Disabled selected value #4431

Closed
omzy opened this issue Sep 12, 2023 · 3 comments
Closed

Dropdown & MultiSelect: Disabled selected value #4431

omzy opened this issue Sep 12, 2023 · 3 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@omzy
Copy link

omzy commented Sep 12, 2023

Describe the bug

There appears to be a discrepancy in this behaviour between Dropdown & MultiSelect components. See demo in reproducer link.

  • The data array contains 5 options, and the Rome option is disabled
  • In Dropdown component, I have selected Rome and this option does not get selected
  • In MultiSelect component, I have selected New York & Rome, both of these options are selected

I am not entirely sure what the correct behaviour should be, but either way it should be consistent. I can see this was tackled previously in: #3715 & #3541.

I think some users may prefer to see the disabled option selected, and some users may prefer the opposite. Perhaps a prop to control the behaviour could work?

Reproducer

https://stackblitz.com/edit/prncz5-sebdlg?file=src%2FApp.vue

PrimeVue version

3.32.2

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@omzy omzy 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 12, 2023
@MiguelBamberino
Copy link

Good Morning,
is there an update on the priority of this issue ?

@banyalshipu
Copy link

Hi ,
Can you please update on same because i am stuck with this issue . I need disabled option render on input same like non disabled . Your support would be very helpful.

@omzy
Copy link
Author

omzy commented Jul 29, 2024

Hi there, any chance I can get an update on this please?

@tugcekucukoglu tugcekucukoglu added this to the 4.1.0 milestone Jul 29, 2024
@tugcekucukoglu tugcekucukoglu added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 29, 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: Pending Review Issue or pull request is being reviewed by Core Team labels Sep 24, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Sep 24, 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

No branches or pull requests

4 participants