Skip to content

Commit e6f5a70

Browse files
committed
v-model: do not fire listener at compositionend in lazy mode (fix vuejs#1327)
1 parent 9139fc8 commit e6f5a70

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/directives/model/text.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ module.exports = {
3232
// in IE11 the "compositionend" event fires AFTER
3333
// the "input" event, so the input handler is blocked
3434
// at the end... have to call it here.
35-
self.listener()
35+
//
36+
// #1327: in lazy mode this is unecessary.
37+
if (!lazy) {
38+
self.listener()
39+
}
3640
})
3741
}
3842

0 commit comments

Comments
 (0)