primevue icon indicating copy to clipboard operation
primevue copied to clipboard

Dropdown & MultiSelect: Disabled selected value

Open omzy opened this issue 1 year ago • 2 comments

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: https://github.com/primefaces/primevue/issues/3715 & https://github.com/primefaces/primevue/issues/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 avatar Sep 12 '23 08:09 omzy

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

MiguelBamberino avatar Jan 31 '24 11:01 MiguelBamberino

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.

banyalshipu avatar Feb 02 '24 19:02 banyalshipu

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

omzy avatar Jul 29 '24 09:07 omzy