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(VAutoComplete): v auto complete does not hide placeholder when multiple property is defined #16563

Conversation

gitemad
Copy link
Contributor

@gitemad gitemad commented Feb 1, 2023

Description

Hide placeholder in VAutoComplete component when multiple property is defiend and at least one item is selected.
I solve it using isDirty value in VTextField component.

fixes #16519

Markup:

<template>
  <v-app>
    <v-main>
         <v-autocomplete
            v-model="values"
            :items="items"
            placeholder="Select Item"
            multiple
          ></v-autocomplete>
    </v-main>
  </v-app>
</template>
<script>
  export default {
    data: () => ({
      items: ['foo', 'bar', 'fizz', 'buzz'],
      values: ['foo', 'bar'],
    }),
  }
</script>

fixes vuetifyjs#16519
fix not hiding placeholder in VAutoComplete when "multiple" property is defined
@gitemad gitemad changed the base branch from master to next February 1, 2023 08:13
@gitemad gitemad changed the title Fix/16519 v auto complete does not hide placeholder when multiple property is defined fix(VAutoComplete): v auto complete does not hide placeholder when multiple property is defined Feb 1, 2023
@gitemad
Copy link
Contributor Author

gitemad commented Feb 1, 2023

See #16565.

@gitemad gitemad closed this Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][3.1.2] VAutoComplete doesn't hide placeholder when "multiple" property is defined
1 participant