From 0803bac20a2b6f7cd41add6e4f51460983eea17f Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 20 Nov 2019 12:50:30 +0300 Subject: [PATCH] Fixed #84 - Add p-placeholder to Dropdown label --- src/components/dropdown/Dropdown.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/dropdown/Dropdown.vue b/src/components/dropdown/Dropdown.vue index eb33bdac3..9188ad29c 100644 --- a/src/components/dropdown/Dropdown.vue +++ b/src/components/dropdown/Dropdown.vue @@ -364,8 +364,8 @@ export default { return [ 'p-dropdown-label p-inputtext', { - 'p-placeholder': this.label === null && this.placeholder, - 'p-dropdown-label-empty': (this.label == null || this.label.length === 0) + 'p-placeholder': this.label === this.placeholder, + 'p-dropdown-label-empty': (this.label === 'p-emptylabel' || this.label.length === 0) } ]; }, @@ -374,7 +374,7 @@ export default { if (selectedOption) return this.getOptionLabel(selectedOption); else - return this.placeholder||'p-dropdown'; + return this.placeholder||'p-emptylabel'; }, editableInputValue() { let selectedOption = this.getSelectedOption();