Skip to content

fix(VList): Set item value to item if primitive #21596

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

Merged
merged 3 commits into from
Jun 23, 2025

Conversation

Haviles04
Copy link
Contributor

fixes: #21584

Markup:

<template>
  <v-card class="mx-auto" max-width="300">
    <v-list
      v-model:selected="selected"
      :items="items"
      select-strategy="independent"
      selectable
    />
  </v-card>
  <v-card class="mx-auto my-8 pa-4" max-width="300">
    <div>{{ selected }}</div>
  </v-card>
</template>

<script setup>
  import { ref } from 'vue'
  const items = [
    'Lorem ipsum',
    'Foo bar',
    'Avocado toast',
  ]
  const selected = ref([])
</script>


@Haviles04 Haviles04 changed the title fix(VList): Set value to Item if primitive fix(VList): Set item value to item if primitive Jun 18, 2025
@Haviles04 Haviles04 requested a review from a team June 18, 2025 14:55
@Haviles04 Haviles04 self-assigned this Jun 19, 2025
@Haviles04 Haviles04 added T: bug Functionality that does not work as intended/expected C: VList labels Jun 19, 2025
@KaelWD KaelWD added this to the v3.8.x milestone Jun 23, 2025
@KaelWD KaelWD merged commit 58007ca into master Jun 23, 2025
18 checks passed
@KaelWD KaelWD deleted the haviles04/v-list-string-item-value-fix branch June 23, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VList 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.8.9] VList selectable - does not work when items is an array of strings
2 participants