Pass placeholder as well
parent
b2a9a0dfc1
commit
0a12e2330e
|
@ -6,7 +6,7 @@
|
|||
</div>
|
||||
<div class="p-multiselect-label-container">
|
||||
<label :class="labelClass">
|
||||
<slot name="value" :value="value">
|
||||
<slot name="value" :value="value" :placeholder="placeholder">
|
||||
{{label}}
|
||||
</slot>
|
||||
</label>
|
||||
|
@ -358,7 +358,7 @@ export default {
|
|||
'p-multiselect-label',
|
||||
{
|
||||
'p-placeholder': this.label === this.placeholder,
|
||||
'p-multiselect-label-empty': !this.placeholder && (!this.value || this.value.length === 0)
|
||||
'p-multiselect-label-empty': !this.$scopedSlots['value'] && !this.placeholder && (!this.value || this.value.length === 0)
|
||||
}
|
||||
];
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue