Fix: Support non-empty values

Dropdown does not show correct styling if using a falsey value such as `false` or `0`.
pull/3892/head
Sean Dickinson 2023-04-24 11:56:53 -04:00 committed by GitHub
parent f76131aa26
commit 3cad13efa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -950,7 +950,7 @@ export default {
'p-disabled': this.disabled,
'p-dropdown-clearable': this.showClear && !this.disabled,
'p-focus': this.focused,
'p-inputwrapper-filled': this.modelValue,
'p-inputwrapper-filled': this.hasSelectedOption,
'p-inputwrapper-focus': this.focused || this.overlayVisible,
'p-overlay-open': this.overlayVisible
}