Skip to content

Commit e8e92c4

Browse files
committed
fix(runtime-dom): fix option selected update
close vuejs#10194
1 parent f1068fc commit e8e92c4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/runtime-dom/src/directives/vModel.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
type DirectiveHook,
44
type ObjectDirective,
55
type VNode,
6+
isReactive,
67
nextTick,
78
warn,
89
} from '@vue/runtime-core'
@@ -239,11 +240,6 @@ function setSelected(
239240
return
240241
}
241242

242-
// fast path for updates triggered by other changes
243-
if (isArrayValue && looseEqual(value, oldValue)) {
244-
return
245-
}
246-
247243
for (let i = 0, l = el.options.length; i < l; i++) {
248244
const option = el.options[i]
249245
const optionValue = getValue(option)

0 commit comments

Comments
 (0)