Merge pull request #2753 from tugcekucukoglu/dropdown-label
Fixed #2751 - Dropdown: with template and no placeholder shows p-empt…pull/2757/head
commit
d1559266e4
|
@ -7,7 +7,7 @@
|
||||||
<input v-if="editable" type="text" class="p-dropdown-label p-inputtext" :disabled="disabled" @focus="onFocus" @blur="onBlur" :placeholder="placeholder" :value="editableInputValue" @input="onEditableInput"
|
<input v-if="editable" type="text" class="p-dropdown-label p-inputtext" :disabled="disabled" @focus="onFocus" @blur="onBlur" :placeholder="placeholder" :value="editableInputValue" @input="onEditableInput"
|
||||||
aria-haspopup="listbox" :aria-expanded="overlayVisible">
|
aria-haspopup="listbox" :aria-expanded="overlayVisible">
|
||||||
<span v-if="!editable" :class="labelClass">
|
<span v-if="!editable" :class="labelClass">
|
||||||
<slot name="value" :value="modelValue" :placeholder="placeholder">{{label||'empty'}}</slot>
|
<slot name="value" :value="modelValue" :placeholder="placeholder">{{label === 'p-emptylabel' ? ' ' : label ||'empty'}}</slot>
|
||||||
</span>
|
</span>
|
||||||
<i v-if="showClear && modelValue != null" class="p-dropdown-clear-icon pi pi-times" @click="onClearClick($event)"></i>
|
<i v-if="showClear && modelValue != null" class="p-dropdown-clear-icon pi pi-times" @click="onClearClick($event)"></i>
|
||||||
<div class="p-dropdown-trigger" role="button" aria-haspopup="listbox" :aria-expanded="overlayVisible">
|
<div class="p-dropdown-trigger" role="button" aria-haspopup="listbox" :aria-expanded="overlayVisible">
|
||||||
|
|
Loading…
Reference in New Issue