Explorar o código

check directive bound status in v-model listener (fix #2023)

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

+ 3 - 1
src/directives/public/model/text.js

@@ -60,7 +60,9 @@ export default {
 
     // Now attach the main listener
     this.listener = function () {
-      if (composing) return
+      if (composing || !self._bound) {
+        return
+      }
       var val = number || isRange
         ? toNumber(el.value)
         : el.value