Fixed #84 - Add p-placeholder to Dropdown label
parent
d4f1d1bfdb
commit
0803bac20a
|
@ -364,8 +364,8 @@ export default {
|
||||||
return [
|
return [
|
||||||
'p-dropdown-label p-inputtext',
|
'p-dropdown-label p-inputtext',
|
||||||
{
|
{
|
||||||
'p-placeholder': this.label === null && this.placeholder,
|
'p-placeholder': this.label === this.placeholder,
|
||||||
'p-dropdown-label-empty': (this.label == null || this.label.length === 0)
|
'p-dropdown-label-empty': (this.label === 'p-emptylabel' || this.label.length === 0)
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
@ -374,7 +374,7 @@ export default {
|
||||||
if (selectedOption)
|
if (selectedOption)
|
||||||
return this.getOptionLabel(selectedOption);
|
return this.getOptionLabel(selectedOption);
|
||||||
else
|
else
|
||||||
return this.placeholder||'p-dropdown';
|
return this.placeholder||'p-emptylabel';
|
||||||
},
|
},
|
||||||
editableInputValue() {
|
editableInputValue() {
|
||||||
let selectedOption = this.getSelectedOption();
|
let selectedOption = this.getSelectedOption();
|
||||||
|
|
Loading…
Reference in New Issue