We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9edaa9c commit b954689Copy full SHA for b954689
src/directives/model/text.js
@@ -56,10 +56,10 @@ module.exports = {
56
? _.toNumber(el.value)
57
: el.value
58
self.set(val)
59
- // force update here, because the watcher may not
60
- // run when the value is the same.
+ // force update on next tick to avoid lock & same value
+ // also only update when user is not typing
61
_.nextTick(function () {
62
- if (self._bound) {
+ if (self._bound && !self.focused) {
63
self.update(self._watcher.value)
64
}
65
})
@@ -115,9 +115,7 @@ module.exports = {
115
},
116
117
update: function (value) {
118
- if (!this.focused) {
119
- this.el.value = _.toString(value)
120
- }
+ this.el.value = _.toString(value)
121
122
123
unbind: function () {
0 commit comments