Vue-select: Setting initial value via value prop locks the selection

Created on 21 Aug 2020  路  2Comments  路  Source: sagalbot/vue-select

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
bug help wanted high priority

Most helpful comment

Just verified and it seems that the changes from #1210 caused the error.

All 2 comments

I can confirm that.
For me, back to version 3.9.4 and it's working again

Just verified and it seems that the changes from #1210 caused the error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rudykaze picture rudykaze  路  3Comments

fabianmieller picture fabianmieller  路  3Comments

davidalvarezr picture davidalvarezr  路  3Comments

manjunath-coachthem picture manjunath-coachthem  路  3Comments

xuwenhao picture xuwenhao  路  3Comments