-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hi all,
I know the project is dormant currently but perhaps someone might know why async validations that is "overwritten" by a second async call succeeds eg.
let success = await $validate() will return true if an async validation is triggered again before the original event completes.
If my explanation is a bit confusing the lines in question is here:
simple-vue-validator/src/validation-bag.js
Lines 238 to 242 in 0ee438e
| if (this.isValidating(field, validatingId)) { | |
| //console.log(validatingId + ' | ' + 'processed'); | |
| return addMessages(messages); | |
| } | |
| return false; |
specifically line 242 returns false, meaning there is no error. Isn't it safer to return true rather?
Kind regards
Bob
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels