Skip to content

Commit fed05ac

Browse files
committed
fix(select): handle async options updated
1 parent 2208b9d commit fed05ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/components/form/Select.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export default {
5656
const selectChildrens = this.localOptions.map((option) => {
5757
return h('option', {
5858
domProps: {
59+
selected: option[this.valueKey] === this.value,
5960
value: option[this.valueKey],
6061
disabled: option.disabled
6162
}

0 commit comments

Comments
 (0)