Quellcode durchsuchen

Fix: block unnecessary input event on input tag placeholder in IE (#8140)

DongGyu Lee vor 7 Jahren
Ursprung
Commit
61c32cc673
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/platforms/web/runtime/modules/attrs.js

+ 1 - 1
src/platforms/web/runtime/modules/attrs.js

@@ -97,7 +97,7 @@ function baseSetAttr (el, key, value) {
     /* istanbul ignore if */
     /* istanbul ignore if */
     if (
     if (
       isIE && !isIE9 &&
       isIE && !isIE9 &&
-      el.tagName === 'TEXTAREA' &&
+      (el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
       key === 'placeholder' && !el.__ieph
       key === 'placeholder' && !el.__ieph
     ) {
     ) {
       const blocker = e => {
       const blocker = e => {