瀏覽代碼

fix(runtime-dom): always treat autocorrect as attribute (#13001)

close #5705
Ecco 1 年之前
父節點
當前提交
1499135c22
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      packages/runtime-dom/src/patchProp.ts

+ 6 - 1
packages/runtime-dom/src/patchProp.ts

@@ -102,7 +102,12 @@ function shouldSetAsProp(
   // them as attributes.
   // them as attributes.
   // Note that `contentEditable` doesn't have this problem: its DOM
   // Note that `contentEditable` doesn't have this problem: its DOM
   // property is also enumerated string values.
   // property is also enumerated string values.
-  if (key === 'spellcheck' || key === 'draggable' || key === 'translate') {
+  if (
+    key === 'spellcheck' ||
+    key === 'draggable' ||
+    key === 'translate' ||
+    key === 'autocorrect'
+  ) {
     return false
     return false
   }
   }