-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
[BUG] Firefox: checkbox validation not triggered with validateOnBlur #134
Comments
When the first thing I did was checking the first checkbox, it worked. From what I can see it has something to do with I or @jedrzejiwanicki could propose a solution if you @erikras agree. |
@erikras ping |
@erikras any update? |
Same for me |
Having the same issue |
issue still persist |
Issue still exists :/ |
@jedrzejiwanicki did you manage to fix the issue? 🤔 |
@hypeofpipe Haven't submitted a PR unfortunately, my example has a workaround, have you tried it? |
Yes, thank you, didn't notice it 🎉 ❤️ |
This is a known difference between how Chrome vs Firefox and Safari handles checkbox focus - I you use tab to tab through the checkboxes the blur event fires its just on clicks which it does not. angular/angular#28830 |
What is the current behavior?
Passing validateOnBlur prop to Form results in not validating the checkbox input in Firefox browser, as onBlur is not triggered in that browser.
What is the expected behavior?
Checkbox input should be validated.
Sandbox Link
Here is the issue presented. I placed two checkboxes, one with bug behavior, second with my workaround. To encounter the issue, please run it in Firefox.
https://codesandbox.io/s/yyw1r626z
What's your environment?
React Final Form: 3.0.5
Final Form: 4.0.1
Browser: Firefox 57.0.4
The text was updated successfully, but these errors were encountered: