From: Ecco <55989+Ecco@users.noreply.github.com> Date: Mon, 31 Mar 2025 06:31:11 +0000 (-0400) Subject: fix(runtime-dom): always treat autocorrect as attribute (#13001) X-Git-Tag: v3.5.14~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1499135c227236e037bb746beeb777941b0b58ff;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-dom): always treat autocorrect as attribute (#13001) close #5705 --- diff --git a/packages/runtime-dom/src/patchProp.ts b/packages/runtime-dom/src/patchProp.ts index b6af899711..27174ddf62 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') { + if ( + key === 'spellcheck' || + key === 'draggable' || + key === 'translate' || + key === 'autocorrect' + ) { return false }