Skip to content

Commit

Permalink
no need to handle focus/blur for v-model with lazy (fix vuejs#2083)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 25, 2015
1 parent c3848c8 commit 8609d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/public/model/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
// prevent messing with the input when user is typing,
// and force update on blur.
this.focused = false
if (!isRange) {
if (!isRange && !lazy) {
this.on('focus', function () {
self.focused = true
})
Expand Down

0 comments on commit 8609d4a

Please sign in to comment.