Skip to content

feat(VSelect/VAutocomplete/VCombobox): allow persistent menu#23008

Open
J-Sek wants to merge 1 commit into
devfrom
feat/persistent-selection-menu
Open

feat(VSelect/VAutocomplete/VCombobox): allow persistent menu#23008
J-Sek wants to merge 1 commit into
devfrom
feat/persistent-selection-menu

Conversation

@J-Sek

@J-Sek J-Sek commented Jul 13, 2026

Copy link
Copy Markdown
Contributor
  • allows keeping menu open when multiple is false

closes #20590

<template>
  <v-app theme="dark">
    <v-container width="300">
      <v-combobox
        :items="colors"
        variant="solo"
        _multiple
        density="compact"
        autocomplete="off"
        chips
        closable-chips
        :menu-props="{ offset: 8, closeOnContentClick: false }"
        :list-props="{ density: 'compact', class: 'pa-1 pt-0 border rounded-lg' }"
      >
        <template v-slot:item="{ props }">
          <v-list-item v-bind="props" min-height="32" class="mt-1 rounded">
            <template #append="{ isSelected }">
              <v-checkbox-btn
                class="my-n2 mr-n3"
                style="zoom: 0.8125"
                true-icon="$complete"
                false-icon=""
                :model-value="isSelected"
                @click.prevent
                tabindex="-1"
              />
            </template>
          </v-list-item>
        </template>
      </v-combobox>
    </v-container>
  </v-app>
</template>

<script setup>
  const colors = ['green', 'purple', 'indigo', 'cyan', 'teal', 'orange']
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report][3.7.2] Autocomplete > menu-props > closeOnContentClick

1 participant