Explorar o código

v-model: do not fire listener at compositionend in lazy mode (fix #1327)

Evan You %!s(int64=10) %!d(string=hai) anos
pai
achega
e6f5a70bbe
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/directives/model/text.js

+ 5 - 1
src/directives/model/text.js

@@ -32,7 +32,11 @@ module.exports = {
         // in IE11 the "compositionend" event fires AFTER
         // in IE11 the "compositionend" event fires AFTER
         // the "input" event, so the input handler is blocked
         // the "input" event, so the input handler is blocked
         // at the end... have to call it here.
         // at the end... have to call it here.
-        self.listener()
+        //
+        // #1327: in lazy mode this is unecessary.
+        if (!lazy) {
+          self.listener()
+        }
       })
       })
     }
     }