From 713d1976923a6cf3040059f6a1d2e87c3580cc6d Mon Sep 17 00:00:00 2001 From: Ecco <55989+Ecco@users.noreply.github.com> Date: Wed, 5 Mar 2025 21:34:08 -0500 Subject: [PATCH 1/2] fix: always treat autocorrect as attribute Fix #5705 --- packages/runtime-dom/src/patchProp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-dom/src/patchProp.ts b/packages/runtime-dom/src/patchProp.ts index b6af8997112..80b37dacb09 100644 --- a/packages/runtime-dom/src/patchProp.ts +++ b/packages/runtime-dom/src/patchProp.ts @@ -102,7 +102,7 @@ function shouldSetAsProp( // them as attributes. // Note that `contentEditable` doesn't have this problem: its DOM // property is also enumerated string values. - if (key === 'spellcheck' || key === 'draggable' || key === 'translate') { + if (key === 'spellcheck' || key === 'draggable' || key === 'translate' || key === 'autocorrect') { return false } From bc68a0c7958b5a53fc1fe40eb126ecd8c311818a Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 6 Mar 2025 05:43:18 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- packages/runtime-dom/src/patchProp.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/runtime-dom/src/patchProp.ts b/packages/runtime-dom/src/patchProp.ts index 80b37dacb09..27174ddf624 100644 --- a/packages/runtime-dom/src/patchProp.ts +++ b/packages/runtime-dom/src/patchProp.ts @@ -102,7 +102,12 @@ function shouldSetAsProp( // them as attributes. // Note that `contentEditable` doesn't have this problem: its DOM // property is also enumerated string values. - if (key === 'spellcheck' || key === 'draggable' || key === 'translate' || key === 'autocorrect') { + if ( + key === 'spellcheck' || + key === 'draggable' || + key === 'translate' || + key === 'autocorrect' + ) { return false }