Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/content/meta/SelectRoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
'description': '<p>When <code>true</code>, indicates that the user must set the value before the owning form can be submitted.</p>\n',
'type': 'boolean',
'required': false
},
{
'name': 'id',
'description': '<p>Id of the element</p>\n',
'type': 'string',
'required': false
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
]" />

Expand Down
1 change: 1 addition & 0 deletions packages/core/src/Select/BubbleSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface BubbleSelectProps {
required?: boolean
size?: number
value?: any
id?: string
}

const props = defineProps<BubbleSelectProps>()
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/Select/SelectRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export interface SelectRootProps<T = AcceptableValue> extends FormFieldProps {
autocomplete?: string
/** When `true`, prevents the user from interacting with Select */
disabled?: boolean
/** Id of the element */
id?: string
}

export type SelectRootEmits<T = AcceptableValue> = {
Expand Down Expand Up @@ -202,6 +204,7 @@ provideSelectRootContext({

<BubbleSelect
v-if="isFormControl && name"
:id="id"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
:key="nativeSelectKey"
aria-hidden="true"
tabindex="-1"
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/Select/story/SelectForm.story.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function handleChange(event: any) {
>
<label for="fruit">Fruit</label>
<SelectRoot
id="fruit"
name="fruit"
default-value="Apple"
>
Expand Down
Loading