From 3cad13efa4840f50ca5b27bd5b7bff891b5904bb Mon Sep 17 00:00:00 2001 From: Sean Dickinson <90267290+sean-dickinson@users.noreply.github.com> Date: Mon, 24 Apr 2023 11:56:53 -0400 Subject: [PATCH] Fix: Support non-empty values Dropdown does not show correct styling if using a falsey value such as `false` or `0`. --- components/lib/dropdown/Dropdown.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index 4d1b4db6a..779cd4a26 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -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 }