Skip to content

Commit

Permalink
fix(SelectMenu): wrong placeholder color when modelValue is an empt…
Browse files Browse the repository at this point in the history
…y string

Resolves #1862
  • Loading branch information
benjamincanac committed Jun 12, 2024
1 parent 6882322 commit 9b9ccdb
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 @@ -391,7 +391,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 === undefined && props.modelValue === null) && ui.value.placeholder, props.selectClass)
), props.placeholder && !props.modelValue && ui.value.placeholder, props.selectClass)

This comment has been minimized.

Copy link
@kicaj

kicaj Jun 16, 2024

Contributor

@benjamincanac If modelValue is 0 the selected value is gray - incorrect

})
const isLeading = computed(() => {
Expand Down

0 comments on commit 9b9ccdb

Please sign in to comment.