From 1661fa86c9fcfb26d60315751414c7fd7a924e2d Mon Sep 17 00:00:00 2001 From: Doctorwu Date: Tue, 27 Feb 2024 11:00:17 +0800 Subject: [PATCH 1/5] fix(runtime-dom): avoid unset option's value close #10412 re-fix #10396 --- packages/runtime-dom/src/modules/props.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/runtime-dom/src/modules/props.ts b/packages/runtime-dom/src/modules/props.ts index e9b3bca357d..4d4b2359cdd 100644 --- a/packages/runtime-dom/src/modules/props.ts +++ b/packages/runtime-dom/src/modules/props.ts @@ -34,13 +34,17 @@ export function patchDOMProp( // custom elements may use _value internally !tag.includes('-') ) { + const mounted = '_value' in el // store value as _value as well since // non-string values will be stringified. el._value = value // #4956: