Skip to content
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

fix(VSelect): fix hide-selected with return-object #19807

Merged
merged 1 commit into from
May 14, 2024

Conversation

lzl0304
Copy link
Contributor

@lzl0304 lzl0304 commented May 14, 2024

Description

fix #19806

Markup:

<template>
  <v-switch v-model="returnObject" color="primary" label="Return Object" />
  <v-select
    v-model="select"
    :hint="`${select.state}, ${select.abbr}`"
    :items="items"
    :return-object="returnObject"
    item-title="state"
    item-value="abbr"
    label="Select"
    hide-selected
  />
</template>

<script>
  export default {
    data () {
      return {
        select: { state: 'Florida', abbr: 'FL' },
        returnObject: false,
        items: [
          { state: 'Florida', abbr: 'FL' },
          { state: 'Georgia', abbr: 'GA' },
          { state: 'Nebraska', abbr: 'NE' },
          { state: 'California', abbr: 'CA' },
          { state: 'New York', abbr: 'NY' },
        ],
      }
    },
  }
</script>

@johnleider johnleider merged commit aa79f16 into vuetifyjs:master May 14, 2024
9 of 10 checks passed
@johnleider johnleider added this to the v3.6.x milestone May 14, 2024
@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VSelect VSelect labels May 14, 2024
@lzl0304 lzl0304 deleted the fix-19806 branch May 23, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VSelect VSelect 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.6.5] VSelect hide-selected doesn't work with return-object
2 participants