sagalbot/vue-select

Setting initial value via value prop locks the selection

Open

#1,270 创建于 2020年8月21日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)JavaScript (4,548 star) (1,307 fork)batch import
bughelp wantedhigh priority

描述

Describe the bug in 3.. you can no longer set the selection via the value prop without vue-select locking its selection to that initial value. That is fine if you put a vue/vuex data object and update that but if you set the value prop as a string (ex. your data comes from PHP)

To Reproduce https://codepen.io/roennow/pen/yLOVbwE Try to select something different than foo

Expected behavior https://codepen.io/roennow/pen/bGpBWJr When you select something different than foo it actually does it

Desktop:

  • OS: macOS Catalina (10.15.6)
  • Browser Firefox
  • Version 78.0.2

贡献者指南