Skip to content

Commit

Permalink
fix(runtime-dom): fix option selected update failed (vuejs#10200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doctor-wu authored and lynxlangya committed May 30, 2024
1 parent d5ad785 commit 2cff7c0
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 2cff7c0

Please sign in to comment.