Skip to content

Commit

Permalink
fix(runtime-dom): fix option selected update failed (#10200)
Browse files Browse the repository at this point in the history
close #10194
close #10267
  • Loading branch information
Doctor-wu committed Feb 6, 2024
1 parent 759a951 commit f31d782
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/runtime-dom/src/directives/vModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,6 @@ function setSelected(
return
}

// fast path for updates triggered by other changes
if (isArrayValue && looseEqual(value, oldValue)) {
return
}

for (let i = 0, l = el.options.length; i < l; i++) {
const option = el.options[i]
const optionValue = getValue(option)
Expand Down

0 comments on commit f31d782

Please sign in to comment.