Преглед изворни кода

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

close #10194
close #10267
Doctor Wu пре 2 година
родитељ
комит
f31d782e46
1 измењених фајлова са 0 додато и 5 уклоњено
  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)