Skip to content

Conversation

@J-Sek
Copy link
Contributor

@J-Sek J-Sek commented Sep 11, 2025

Description

  • registers VChip in slider group, so <v-slider-group-item> wrapper is not necessary
  • supports closable (that technically does not remove the chip, so it needs to call unregister manually)

fixes #22046

Markup:

<template>
  <v-app theme="dark">
    <v-container :max-width="600">
      <v-chip-group v-model="selected" selected-class="text-red" center-active filter>
        <v-chip v-for="item in items" :key="item.value" :text="item.text" :value="item.value" closable />
      </v-chip-group>
    </v-container>
  </v-app>
</template>

<script setup>
  import { shallowRef } from 'vue'

  const items = Array.from({ length: 25 }, (_, i) => ({ text: `Item ${i}`, value: `id_${i}` }))
  const selected = shallowRef(items[16].value)
</script>

@J-Sek J-Sek self-assigned this Sep 11, 2025
@J-Sek J-Sek added T: bug Functionality that does not work as intended/expected C: VChipGroup labels Sep 11, 2025
@KaelWD KaelWD force-pushed the master branch 4 times, most recently from 142b234 to bb54746 Compare September 12, 2025 09:01
@J-Sek J-Sek force-pushed the fix/vchipgroup-center-active branch 2 times, most recently from 235402b to c6f74f3 Compare September 30, 2025 17:34
@J-Sek J-Sek force-pushed the fix/vchipgroup-center-active branch from c6f74f3 to 3b3cbd5 Compare September 30, 2025 17:41
@J-Sek J-Sek merged commit 4a95697 into vuetifyjs:master Sep 30, 2025
10 checks passed
@J-Sek J-Sek deleted the fix/vchipgroup-center-active branch September 30, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C: VChipGroup 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.10.0] centerActive props does not work in ChipGroup

1 participant