Skip to content

Commit c7a28d5

Browse files
committed
fix IE10/11 v-model infinite bouncing (ref: vuejs#592)
1 parent 1bbaab3 commit c7a28d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/directives/model/default.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ module.exports = {
5151
// the cursor was at
5252
charsOffset = el.value.length - el.selectionStart
5353
} catch (e) {}
54+
// Fix IE10/11 infinite update cycle
55+
// https://github.com/yyx990803/vue/issues/592
56+
/* istanbul ignore if */
57+
if (charsOffset < 0) {
58+
return
59+
}
5460
set()
5561
_.nextTick(function () {
5662
// force a value update, because in

0 commit comments

Comments
 (0)