Browse Source

partially revert df01719 (fix #2491)

Evan You 10 years ago
parent
commit
20aefd80d0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/directives/public/model/text.js

+ 4 - 0
src/directives/public/model/text.js

@@ -53,6 +53,10 @@ export default {
       })
       this.on('blur', function () {
         self.focused = false
+        // do not sync value after fragment removal (#2017)
+        if (!self._frag || self._frag.inserted) {
+          self.rawListener()
+        }
       })
     }