From: Doctor Wu <44631608+Doctor-wu@users.noreply.github.com> Date: Tue, 6 Feb 2024 08:58:51 +0000 (+0800) Subject: fix(runtime-dom): fix option selected update failed (#10200) X-Git-Tag: v3.4.16~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f31d782e4668050a188ac0f11ba8d5b861b913ca;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-dom): fix option selected update failed (#10200) close #10194 close #10267 --- diff --git a/packages/runtime-dom/src/directives/vModel.ts b/packages/runtime-dom/src/directives/vModel.ts index c581cb1058..b2450b3cfb 100644 --- a/packages/runtime-dom/src/directives/vModel.ts +++ b/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)