Skip to content

Commit

Permalink
feat: emit focus/blur from inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetansenn committed Oct 4, 2022
1 parent ad6458f commit f116ea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/components/form/Input.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ export default {
},
onFocus () {
this.$children[0].localFocused = true

this.$emit('focus')
},
onBlur () {
this.$children[0].localFocused = false

this.$emit('blur')
}
}
}

0 comments on commit f116ea7

Please sign in to comment.