Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async validator is called multiple times with the same value #283

Open
BryanCrotaz opened this issue Feb 9, 2021 · 2 comments
Open

async validator is called multiple times with the same value #283

BryanCrotaz opened this issue Feb 9, 2021 · 2 comments

Comments

@BryanCrotaz
Copy link

Start with an empty text input

Type a
Async validator is called twice with a
and a third time with a on blur

Type a second character b
Async validator is called with ab
and again with ab on blur

This scenario results in 5 calls for 2 changes - should only be called twice.

@snewcomer
Copy link
Collaborator

Thanks @BryanCrotaz. Do you have a minimal repro I can play around with? I want to make sure the problem is on our side.

@BryanCrotaz
Copy link
Author

async my-validate() {
console.log("async called");
Await timeout(500);
Return true;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants