mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-14 20:35:47 +01:00
Core: Added radio/checkbox to delegate click-event
Reverts the accidental change from d319a0da35,
where these event handlers were dropped.
Closes #1126
This commit is contained in:
committed by
Jörn Zaefferer
parent
db55d36de5
commit
cda5efa487
@@ -349,7 +349,7 @@ $.extend( $.validator, {
|
||||
"focusin focusout keyup", delegate)
|
||||
// Support: Chrome, oldIE
|
||||
// "select" is provided as event.target when clicking a option
|
||||
.validateDelegate("select, option", "click", delegate);
|
||||
.validateDelegate("select, option, [type='radio'], [type='checkbox']", "click", delegate);
|
||||
|
||||
if ( this.settings.invalidHandler ) {
|
||||
$( this.currentForm ).bind( "invalid-form.validate", this.settings.invalidHandler );
|
||||
|
||||
Reference in New Issue
Block a user