2
0
Эх сурвалжийг харах

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

Evan You 10 жил өмнө
parent
commit
f9bbd20c90

+ 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