Skip to content

Commit

Permalink
fix(SelectMenu): wrong placeholder color with multiple (#2218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malik-Jouda committed Sep 20, 2024
1 parent 7835050 commit 28ad5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/SelectMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ export default defineComponent({
variant?.replaceAll('{color}', color.value),
(isLeading.value || slots.leading) && ui.value.leading.padding[size.value],
(isTrailing.value || slots.trailing) && ui.value.trailing.padding[size.value]
), props.placeholder && !props.modelValue && ui.value.placeholder, props.selectClass)
), props.placeholder && (!props.modelValue || (Array.isArray(props.modelValue) && !props.modelValue.length)) && ui.value.placeholder, props.selectClass)
})
const isLeading = computed(() => {
Expand Down

0 comments on commit 28ad5cf

Please sign in to comment.