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): fix unable to set default searchInput #14928

Open
wants to merge 1 commit into
base: v2-stable
Choose a base branch
from

Conversation

NoahKa0
Copy link

@NoahKa0 NoahKa0 commented Apr 6, 2022

resolves #9757

Description

When using a default value in search-input it was reset because VSelect wasn't aware that it was selected. Now when a default value is used, it will be selected when VAutocomplete is created.

Motivation and Context

This change fixes issue #9757.

How Has This Been Tested?

I've tested this manually.

Markup:

<template>
  <v-container>
    <v-autocomplete
      :search-input.sync="search"
      :items="items"
    />
  </v-container>
</template>

<script>
  export default {
    data: () => ({
      search: 'three',
      items: [
        'one',
        'two',
        'three'
      ],
    }),
  }
</script>

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any features but makes things better)

Checklist:

  • The PR title is no longer than 64 characters.
  • The PR is submitted to the correct branch (master for bug fixes and documentation updates, dev for new features and backwards compatible changes and next for non-backwards compatible changes).
  • My code follows the code style of this project.
  • I've added relevant changes to the documentation (applies to new features and breaking changes in core library)

@KaelWD KaelWD changed the base branch from master to v2-stable February 5, 2023 09:54
@MajesticPotatoe MajesticPotatoe added T: bug Functionality that does not work as intended/expected C: VAutocomplete VAutocomplete labels Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VAutocomplete VAutocomplete 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] VAutocomplete ignore initial value of search-input prop
2 participants