]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-dom): always treat autocorrect as attribute (#13001)
authorEcco <55989+Ecco@users.noreply.github.com>
Mon, 31 Mar 2025 06:31:11 +0000 (02:31 -0400)
committerGitHub <noreply@github.com>
Mon, 31 Mar 2025 06:31:11 +0000 (14:31 +0800)
close #5705

packages/runtime-dom/src/patchProp.ts

index b6af8997112ba533c62979b47fb1526890261817..27174ddf62460238ef59cbbd2a1d7a3020b6fe28 100644 (file)
@@ -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
   }