| @@ -114,8 +114,9 @@ | ||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | const elPaymentMethods = elUlPaymentMethods.querySelectorAll( `.${ window.lpCheckout.classPaymentMethod }` ); |
| 117 | 117 | elPaymentMethods.forEach( ( el ) => { |
| 118 | + el.classList.remove( 'selected' ); | |
| 118 | 119 | const elPaymentMethodForm = el.querySelector( `.${ window.lpCheckout.classPaymentMethodForm }` ); |
| 119 | 120 | if ( ! elPaymentMethodForm ) { |
| 120 | 121 | return; |
| 121 | 122 | } |
| @@ -125,8 +126,10 @@ | ||
| 125 | 126 | } else { |
| 126 | 127 | elPaymentMethodForm.style.display = 'block'; |
| 127 | 128 | } |
| 128 | 129 | } ); |
| 130 | + | |
| 131 | + elPaymentMethod.classList.add( 'selected' ); | |
| 129 | 132 | }, |
| 130 | 133 | checkEmailGuest: ( e ) => { |
| 131 | 134 | const target = e.target; |
| 132 | 135 | if ( target.id !== 'guest_email' ) { |