Browse Source

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

DongGyu Lee 7 years ago
parent
commit
61c32cc673
1 changed files with 1 additions and 1 deletions
  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 */
     if (
       isIE && !isIE9 &&
-      el.tagName === 'TEXTAREA' &&
+      (el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
       key === 'placeholder' && !el.__ieph
     ) {
       const blocker = e => {