vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

feat(VAutoComplete): add clearSearchOnSelection prop

Open gitemad opened this issue 2 years ago • 4 comments

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>

gitemad avatar Oct 11 '23 13:10 gitemad

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?

hanzelkatomas avatar Oct 24 '23 14:10 hanzelkatomas

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? :)

amadeous avatar Feb 09 '24 09:02 amadeous

I hope for a quick review, long awaited

actionjacks avatar Apr 03 '24 08:04 actionjacks

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

captainlettuce avatar Apr 08 '24 06:04 captainlettuce