Browse Source

fix(runtime-dom): fix option selected update failed (#10200)

close #10194
close #10267
Doctor Wu 2 years ago
parent
commit
f31d782e46
1 changed files with 0 additions and 5 deletions
  1. 0 5
      packages/runtime-dom/src/directives/vModel.ts

+ 0 - 5
packages/runtime-dom/src/directives/vModel.ts

@@ -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)