Skip to content

Conversation

@J-Sek
Copy link
Contributor

@J-Sek J-Sek commented Dec 4, 2025

fixes #22398

Markup:

<template>
  <v-app theme="dark">
    <v-container max-width="450">
      <v-autocomplete :items="items" label="v-autocomplete" auto-select-first />
      <v-combobox :items="items" label="v-combobox" auto-select-first />
    </v-container>
  </v-app>
</template>

<script>
  export default {
    data: () => ({
      items: [
        { type: 'subheader', title: 'Group 1' },
        { title: 'Item 1.1', value: 11 },
        { title: 'Item 1.2', value: 12 },
        { title: 'Item 1.3', value: 13 },
        { title: 'Item 1.4', value: 14 },
        { type: 'divider', text: 'or' },
        { type: 'subheader', title: 'Group 2' },
        { title: 'Item 2.1', value: 21 },
        { title: 'Item 2.2', value: 22 },
        { title: 'Item 2.3', value: 23 },
      ],
    }),
  }
</script>

@J-Sek J-Sek self-assigned this Dec 4, 2025
@J-Sek J-Sek added T: bug Functionality that does not work as intended/expected C: VCombobox C: VAutocomplete labels Dec 4, 2025
@J-Sek J-Sek force-pushed the fix/auto-select-first--with-subheaders branch from 9888624 to 5d95cab Compare December 4, 2025 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C: VAutocomplete C: VCombobox T: bug Functionality that does not work as intended/expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report][3.11.2] auto-select-first doesn't work well with subheader items

2 participants