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): new prop disableSelectOnBackspace #19928

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

Conversation

volarname
Copy link
Contributor

Description

In some cases hitting Backspace that will remove selected items from VAutocomplete is unwanted. New prop disable-select-on-backspace will prevent to blur from search field and activate the latest selected item from selected listm and additional hitting of Backspace that will remove data. This will prevent for unwanted removing.

resolves #19926

Markup:

<template>
  <v-app>
    <v-container>
      <v-autocomplete
        v-model="model"
        label="Autocomplete"
        :items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
        chips
        closable-chips
        hide-selected
        multiple
        disable-select-on-backspace
      ></v-autocomplete>
    </v-container>
  </v-app>
</template>

<script>
import { ref } from 'vue'
export default {
  name: 'Playground',
  setup () {
    const model = ref(['California', 'Colorado'])

    return {
      model,
    }
  },
}
</script>

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.

None yet

1 participant