ソースを参照

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

Evan You 10 年 前
コミット
f9bbd20c90
1 ファイル変更3 行追加1 行削除
  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