Merge pull request #6484 from C17AN/fix/6437
fix(Select): replace logical OR Operator to Nullish Coalescing Operatorpull/6493/head
commit
c90828dfd0
|
@ -46,7 +46,7 @@
|
|||
@keydown="onKeyDown"
|
||||
v-bind="ptm('label')"
|
||||
>
|
||||
<slot name="value" :value="modelValue" :placeholder="placeholder">{{ label === 'p-emptylabel' ? ' ' : label || 'empty' }}</slot>
|
||||
<slot name="value" :value="modelValue" :placeholder="placeholder">{{ label === 'p-emptylabel' ? ' ' : label ?? 'empty' }}</slot>
|
||||
</span>
|
||||
<slot v-if="isClearIconVisible" name="clearicon" :class="cx('clearIcon')" :clearCallback="onClearClick">
|
||||
<component :is="clearIcon ? 'i' : 'TimesIcon'" ref="clearIcon" :class="[cx('clearIcon'), clearIcon]" @click="onClearClick" v-bind="ptm('clearIcon')" data-pc-section="clearicon" />
|
||||
|
|
Loading…
Reference in New Issue