fix(Select): replace logical OR Operator to Nullish Coalescing Operator

pull/6484/head
김찬민 2024-09-27 13:10:09 +09:00
parent 3845ff8bba
commit 731747c00f
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@
@keydown="onKeyDown"
v-bind="ptm('label')"
>
<slot name="value" :value="modelValue" :placeholder="placeholder">{{ label === 'p-emptylabel' ? '&nbsp;' : label || 'empty' }}</slot>
<slot name="value" :value="modelValue" :placeholder="placeholder">{{ label === 'p-emptylabel' ? '&nbsp;' : 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" />