Skip to content

Commit 7a860ee

Browse files
Maja Kudlickatmorehouse
authored andcommitted
fix(select): Wait for the v-model value to update before emitting change event on form select (#2207)
1 parent 3c9936e commit 7a860ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/form-select/form-select.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export default {
5555
.filter(o => o.selected)
5656
.map(o => ('_value' in o ? o._value : o.value))
5757
this.localValue = target.multiple ? selectedVal : selectedVal[0]
58-
this.$emit('change', this.localValue)
58+
this.$nextTick(() => {
59+
this.$emit('change', this.localValue)
60+
})
5961
}
6062
}
6163
},

0 commit comments

Comments
 (0)