]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-dom): fix option selected update failed (#10200)
authorDoctor Wu <44631608+Doctor-wu@users.noreply.github.com>
Tue, 6 Feb 2024 08:58:51 +0000 (16:58 +0800)
committerGitHub <noreply@github.com>
Tue, 6 Feb 2024 08:58:51 +0000 (16:58 +0800)
close #10194
close #10267

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

index c581cb10589edaac8ca3586fa536df950ba26429..b2450b3cfb45958cb5511983f26c8e5807be2177 100644 (file)
@@ -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)