Fixed #1468 - Dropdown does not correctly handle empty label strings
parent
a023df876c
commit
85710c958a
|
@ -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"
|
||||
aria-haspopup="listbox" :aria-expanded="overlayVisible">
|
||||
<span v-if="!editable" :class="labelClass">
|
||||
<slot name="value" :value="modelValue" :placeholder="placeholder">{{label}}</slot>
|
||||
<slot name="value" :value="modelValue" :placeholder="placeholder">{{label||'empty'}}</slot>
|
||||
</span>
|
||||
<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">
|
||||
|
|
Loading…
Reference in New Issue