primevue
primevue copied to clipboard
Dropdown: Placeholder class is applied even though an option is selected
Describe the bug
When the dropdown's placeholder value is the same as the select option's label, the Dropdown components adds the p-placeholder
class even though it semantically makes no sense.
Currently, this is due to the fact that the placeholder class is applied when the current label is equal to the placeholder instead of when there's no value selected (e.g. !this.value
).
Reproducer
No response
PrimeVue version
2.9.2
Vue version
2.x
Language
ES6
Build / Runtime
Nuxt
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
The placeholder class should never be applied if a value is selected