fixes an issue with additional payment select fields having 'disabled selected'
This commit is contained in:
parent
48a0045373
commit
64399b65b9
|
@ -374,7 +374,7 @@ jQuery( function( $ ) {
|
|||
if ( ID ) {
|
||||
if ( $.inArray( $( this ).attr( 'type' ), [ 'checkbox', 'radio' ] ) !== -1 ) {
|
||||
$( this ).prop( 'checked', paymentDetails[ ID ] ).change();
|
||||
} else if ( 0 === $( this ).val().length ) {
|
||||
} else if ( $(this).val() !== null && 0 === $( this ).val().length ) {
|
||||
$( this ).val( paymentDetails[ ID ] ).change();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue