fixes an issue with additional payment select fields having 'disabled selected'

This commit is contained in:
Dominik Krebs 2018-09-19 13:35:00 +02:00
parent 48a0045373
commit 64399b65b9
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}