mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 10:20:42 +01:00
chore(SelectMenu): add required input only when needed
This commit is contained in:
@@ -11,7 +11,14 @@
|
|||||||
:class="ui.wrapper"
|
:class="ui.wrapper"
|
||||||
@update:model-value="onUpdate"
|
@update:model-value="onUpdate"
|
||||||
>
|
>
|
||||||
<input :value="modelValue" :required="required" class="absolute inset-0 w-px opacity-0 cursor-default" tabindex="-1" aria-hidden="true">
|
<input
|
||||||
|
v-if="required"
|
||||||
|
:value="modelValue"
|
||||||
|
:required="required"
|
||||||
|
class="absolute inset-0 w-px opacity-0 cursor-default"
|
||||||
|
tabindex="-1"
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
|
||||||
<component
|
<component
|
||||||
:is="searchable ? 'ComboboxButton' : 'ListboxButton'"
|
:is="searchable ? 'ComboboxButton' : 'ListboxButton'"
|
||||||
|
|||||||
Reference in New Issue
Block a user