Skip to content

Commit

Permalink
Merge pull request #6484 from C17AN/fix/6437
Browse files Browse the repository at this point in the history
fix(Select): replace logical OR Operator to Nullish Coalescing Operator
  • Loading branch information
tugcekucukoglu authored Sep 27, 2024
2 parents 39d05a7 + 731747c commit c90828d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/select/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit c90828d

Please sign in to comment.