Skip to content

Commit

Permalink
fix(select-menu): fix option show
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaubree committed Jan 16, 2024
1 parent b5a6ea7 commit 4c170f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/select/USelectMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ onMounted(() => {
:value="valueAttribute ? option[valueAttribute] : option"
:disabled="option.isDisabled"
>
<div v-if="!selected" :class="config.option.wrapper">
<div v-if="!selected || !isMultiple" :class="config.option.wrapper">
<li :class="[config.option.base, config.option.rounded, config.option.padding, config.option.size[props.size], config.option.color, active ? config.option.active : config.option.inactive, selected && config.option.selected, optionDisabled && config.option.disabled]">
<div :class="config.option.container">
<slot name="option" :option="option" :is-active="active" :is-selected="selected">
Expand All @@ -250,6 +250,9 @@ onMounted(() => {
<span class="truncate">{{ typeof option === 'string' ? option : option[optionAttribute] }}</span>
</slot>
</div>
<span v-if="selected" :class="[config.option.selectedIcon.wrapper, config.option.selectedIcon.padding]">
<UIcon :name="selectedIcon" :class="[config.option.selectedIcon.base, config.option.selectedIcon.color]" aria-hidden="true" />
</span>
</li>
</div>
</component>
Expand Down

0 comments on commit 4c170f1

Please # to comment.