Skip to content

Commit

Permalink
Show error messages on blur after pending validations
Browse files Browse the repository at this point in the history
  • Loading branch information
beornf committed Jul 18, 2021
1 parent 10ab31b commit 0b9aaac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ function slotProps () {
*/
function blurHandler () {
if (this.errorBehavior === 'blur' || this.errorBehavior === 'value') {
this.behavioralErrorVisibility = true
this.pendingValidation.then(() => {
this.behavioralErrorVisibility = true
})
}
this.$nextTick(() => this.$emit('blur-context', this.context))
}
Expand Down

0 comments on commit 0b9aaac

Please sign in to comment.