فهرست منبع

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.
   // 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
   }