primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
9.75k stars 1.17k forks source link

Dropdown & MultiSelect: Disabled selected value #4431

Open omzy opened 12 months ago

omzy commented 12 months ago

Describe the bug

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

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

MiguelBamberino commented 7 months ago

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

banyalshipu commented 7 months ago

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 commented 1 month ago

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