Skip to content

Commit

Permalink
fix(SelectCustom): add missing required prop
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Feb 11, 2022
1 parent 5b050ee commit 619f620
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runtime/components/forms/SelectCustom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
:class="wrapperClass"
@update:model-value="$emit('update:modelValue', $event)"
>
<input :value="modelValue" :required="required" class="absolute inset-0 w-px opacity-0 cursor-default">

<ListboxButton :class="selectCustomClass">
<span class="block truncate">{{ modelValue[textAttribute] }}</span>
<span :class="iconWrapperClass">
Expand Down Expand Up @@ -60,6 +62,10 @@ const props = defineProps({
type: Array,
default: () => []
},
required: {
type: Boolean,
default: false
},
size: {
type: String,
default: 'md',
Expand Down

1 comment on commit 619f620

@vercel
Copy link

@vercel vercel bot commented on 619f620 Feb 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.