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

feat(VAutoComplete): add clearSearchOnSelection prop #18444

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

gitemad
Copy link
Contributor

@gitemad gitemad commented Oct 11, 2023

Description

Add clearSearchOnSelection prop to VAutoComplete component.
Typed search query cleared after selecting an item when this prop is true.

resolves #18428

Markup:

<template>
  <v-autocomplete
    label="Autocomplete"
    :items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
    clearSearchOnSelection
  />
</template>
@hanzelkatomas
Copy link

This is exactly what I am looking for. Currently when using Autocomplete it's not very intuitive. This prop would mean Autocomplete would behave like MUI Autocomplete. I even think this prop should be true by default.
Do you plan to merge this PR?

@amadeous
Copy link

amadeous commented Feb 9, 2024

I would also be interested in having this new feature added to this selector. As @hanzelkatomas, I do think that this prop should be true by default, the user experience would feel more natural.
Could someone please review this PR and merge it? :)

@actionjacks
Copy link

I hope for a quick review, long awaited

@captainlettuce
Copy link
Contributor

This seems to exist with the prop clearOnSelect? (Vuetify 3.5.13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VAutocomplete VAutocomplete T: feature A new feature
6 participants