Apply validation for checkbox while update and submit errors #11360
This commit is contained in:
parent
475cc036e5
commit
561cdd35e5
|
@ -311,7 +311,7 @@ jQuery( function( $ ) {
|
|||
}
|
||||
|
||||
// Lose focus for all fields
|
||||
$form.find( '.input-text, select' ).blur();
|
||||
$form.find( '.input-text, select, input:checkbox' ).blur();
|
||||
|
||||
// Scroll to top
|
||||
$( 'html, body' ).animate( {
|
||||
|
@ -440,7 +440,7 @@ jQuery( function( $ ) {
|
|||
$( '.woocommerce-error, .woocommerce-message' ).remove();
|
||||
wc_checkout_form.$checkout_form.prepend( error_message );
|
||||
wc_checkout_form.$checkout_form.removeClass( 'processing' ).unblock();
|
||||
wc_checkout_form.$checkout_form.find( '.input-text, select' ).blur();
|
||||
wc_checkout_form.$checkout_form.find( '.input-text, select, input:checkbox' ).blur();
|
||||
$( 'html, body' ).animate({
|
||||
scrollTop: ( $( 'form.checkout' ).offset().top - 100 )
|
||||
}, 1000 );
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue