Skip to content

feat(filter): keep dividers and subheaders #21822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

J-Sek
Copy link
Contributor

@J-Sek J-Sek commented Jul 25, 2025

Description

resolves #7424

Markup:

<template>
  <v-container>
    <v-autocomplete
      :items="items"
      autocomplete="off"
      label="I will keep subheaders and dividers when it makes sense"
      multiple
    />
  </v-container>
</template>

<script setup>
  const 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' },
    { 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 Jul 25, 2025
@J-Sek J-Sek added T: feature A new feature E: filter labels Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Header missing in list when searching in autocomplete
1 participant