-
Notifications
You must be signed in to change notification settings - Fork 181
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
check for preSubmit errors #214
check for preSubmit errors #214
Conversation
Solves braincrafted#200. TODO: error bubbling.
Thanks @sandello-alkr. I didn't knew that. Do you want to add error bubbling before I merge? |
Yes, I'll watch into this little later. I don't like recursion in template, so I need some time for research about nested forms behavior. |
@sandello-alkr Anything new on this PR? Should I merge it in its current form and we add error bubbling later? |
I'm not sure right now if error bubbling is something good at all. It makes me crazy when I can't locate field with error, cause of whole form is "red". Maybe we should totally remove error bubbling? |
Anyway, thx for this remind, I'v totally forgot about this (-_-") |
There are some instances when it is useful. For example, in a login form where you don't want to say "username is wrong" or "password is wrong" but rather say "username/password combination is wrong". In that case the whole form should be marked as invalid. |
I've added has-error class to form tag, so now if you need error bubbling for the whole form, you can use error_bubbling option. That would push error from specific input, to the form. |
check for preSubmit errors
Thanks. |
Solves #200.
TODO: error bubbling.