Vue: :value binding on <select> doesn't reflect changes

Created on 6 Dec 2016  路  2Comments  路  Source: vuejs/vue

Vue.js version

2.1.4

Reproduction Link

https://jsfiddle.net/aleksey_beskosty/zz5svy6q/

Steps to reproduce

Select element is declared as:
<select :value="val">...</select>

What is Expected?

When val is changed, select element updates its value and shows it.

What is actually happening?

val is changed but select doesn't update value property.

Most helpful comment

I'm still having this problem on first load. I basically made a wrapper component for a select that uses :value and @input instead of v-model. On first load of the wrapper component, it's random chance as to whether the correct value will be displayed in the select, or whether it is empty. I know the value is there because it displays when I put {{value}} in the same wrapper component right next to the . Also, if I change :value to v-model it works every time. So there must still be some sort of race condition going on. I'm using Vue 2.5.13

Was this page helpful?
0 / 5 - 0 ratings