mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
🐛 Add missing event handler to payment button
This commit is contained in:
parent
e0f0ec973b
commit
b6111e1774
1 changed files with 5 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue