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 Jan 1, 2023
1 parent 3fdd6fd commit f541d3a
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 f541d3a

Please sign in to comment.