Skip to content

Commit d44d235

Browse files
donggyu04hefeng
authored and
hefeng
committed
Fix: block unnecessary input event on input tag placeholder in IE (vuejs#8140)
1 parent 4a444ff commit d44d235

File tree

1 file changed

+1
-1
lines changed
  • src/platforms/web/runtime/modules

1 file changed

+1
-1
lines changed

src/platforms/web/runtime/modules/attrs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function baseSetAttr (el, key, value) {
9797
/* istanbul ignore if */
9898
if (
9999
isIE && !isIE9 &&
100-
el.tagName === 'TEXTAREA' &&
100+
(el.tagName === 'TEXTAREA' || el.tagName === 'INPUT') &&
101101
key === 'placeholder' && !el.__ieph
102102
) {
103103
const blocker = e => {

0 commit comments

Comments
 (0)