🐛 Add missing event handler to payment button

This commit is contained in:
Philipp Stracker 2024-10-09 15:04:03 +02:00
parent e0f0ec973b
commit b6111e1774
No known key found for this signature in database

View file

@ -331,6 +331,11 @@ class ApplePayButton extends PaymentButton {
button.setAttribute( 'type', type );
button.setAttribute( 'locale', language );
button.addEventListener( 'click', ( evt ) => {
evt.preventDefault();
this.onButtonClick();
} );
this.insertButton( button );
}