Skip to content

Commit

Permalink
Fixed #84 - Add p-placeholder to Dropdown label
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 20, 2019
1 parent d4f1d1b commit 0803bac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
];
},
Expand All @@ -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();
Expand Down

0 comments on commit 0803bac

Please sign in to comment.