Fixed #1468 - Dropdown does not correctly handle empty label strings

pull/1533/head
Cagatay Civici 2021-08-27 16:52:36 +03:00
parent a023df876c
commit 85710c958a
1 changed files with 1 additions and 1 deletions

View File

@ -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">