Skip to content

Commit f31d782

Browse files
authoredFeb 6, 2024··
fix(runtime-dom): fix option selected update failed (#10200)
close #10194 close #10267
1 parent 759a951 commit f31d782

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

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

-5
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,6 @@ function setSelected(
239239
return
240240
}
241241

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

0 commit comments

Comments
 (0)
Please sign in to comment.