Skip to content

How to disable options of Select, Autocomplete and Combobox in vuetify 3 #16816

Answered by hbgl
hbgl asked this question in Q&A
Discussion options

You must be logged in to vote

I found a solution.

This does not work:

<v-autocomplete
  label="Foo"
  :items="[
    { title: 'A', value: 1, disabled: true },
    { title: 'B', value: 2 },
    { title: 'C', value: 3 },
  ]"
 />

This works:

<v-autocomplete
  label="Foo"
  item-props="props"
  :items="[
    { title: 'A', value: 1, props: { disabled: true } },
    { title: 'B', value: 2 },
    { title: 'C', value: 3 },
  ]"
/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Fedorov1977
Comment options

Answer selected by hbgl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants