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

onBlur should not be triggered for each Box, but only once, when no Boxes focused #16

Closed
Demetri0 opened this issue May 29, 2023 · 4 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@Demetri0
Copy link

onBlur triggers for each Box, that triggers full field validation and in a couple with for example Yup + react-hook-form, if we have validation rule that length of this field should be exactly 6 chars - error appears right after we enter first char into first Box.

Expected behavior: onBlur should not be triggered if any of Boxes has a focus

@Demetri0 Demetri0 changed the title onBlur should not be triggered for each Box, but only once when no Boxes focused onBlur should not be triggered for each Box, but only once, when no Boxes focused May 29, 2023
@viclafouch
Copy link
Owner

Hello @Demetri0

So when we should trigger the onBlur exactly ?

@viclafouch viclafouch added help wanted Extra attention is needed question Further information is requested labels Jul 31, 2023
@Demetri0
Copy link
Author

At the moment of any of our fields lost focus, but we need some check that next focused element not one of our fields.

@viclafouch
Copy link
Owner

Hummmm I see ! Let me check that

@viclafouch
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants