You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just upgraded to 3.2.0.rc.2 and because of this and this I'm starting to have <button>s with data-validate=true
That represented a problem to me as I wasnt assigning a name for those buttons and an exception is raised half way through validations because of this.
As I workaround I've added the name attribute to all submit buttons and things got back working. It wasnt a big deal to me as I only had 2 forms with client side validations enabled but it might have a huge impact for others.
According to jQuery docs, the :input selector will select ALL form elements, including buttons and I believe that is not the desired behavior to have validations on buttons.
Thoughts?
The text was updated successfully, but these errors were encountered:
I've just upgraded to 3.2.0.rc.2 and because of this and this I'm starting to have
<button>
s withdata-validate=true
That represented a problem to me as I wasnt assigning a
name
for those buttons and an exception is raised half way through validations because of this.As I workaround I've added the
name
attribute to all submit buttons and things got back working. It wasnt a big deal to me as I only had 2 forms with client side validations enabled but it might have a huge impact for others.According to jQuery docs, the :input selector will select ALL form elements, including buttons and I believe that is not the desired behavior to have validations on buttons.
Thoughts?
The text was updated successfully, but these errors were encountered: