Skip to content

Commit 0b9aaac

Browse files
committed
Show error messages on blur after pending validations
1 parent 10ab31b commit 0b9aaac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libs/context.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,9 @@ function slotProps () {
502502
*/
503503
function blurHandler () {
504504
if (this.errorBehavior === 'blur' || this.errorBehavior === 'value') {
505-
this.behavioralErrorVisibility = true
505+
this.pendingValidation.then(() => {
506+
this.behavioralErrorVisibility = true
507+
})
506508
}
507509
this.$nextTick(() => this.$emit('blur-context', this.context))
508510
}

0 commit comments

Comments
 (0)