最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Disable selected options in v-autocomplete in vuetify - Stack Overflow

programmeradmin5浏览0评论

I am using this auto-plete autoplete

There are two options that are selected by default i don't want to remove those options. How can i do that in v-autoplete?

I am using this auto-plete autoplete

There are two options that are selected by default i don't want to remove those options. How can i do that in v-autoplete?

Share Improve this question edited Oct 25, 2018 at 10:36 Sam asked Oct 25, 2018 at 10:34 SamSam 2,4259 gold badges35 silver badges53 bronze badges 3
  • The Code Pen link is blank! – Hamza Abdaoui Commented Oct 25, 2018 at 10:36
  • Don't add close in v-chip for first 2 entry? – William Chong Commented Oct 25, 2018 at 10:59
  • i remove the close pletely but still i can unselect the options, and i can use the backspace as well to remove those selected options. – Sam Commented Oct 25, 2018 at 11:03
Add a ment  | 

1 Answer 1

Reset to default 6

After the investigation, i got the solution to this. Just need to modify the items

{ name: 'test', disabled: true }

Just pass the disabled: true, it will disable the options so that you cannot select and cannot be removed if that option is already selected.

发布评论

评论列表(0)

  1. 暂无评论