mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
don't call button renderer on checkout immediately
Don't render PayPal button immediately when initiating checkout. Instead, call `render` on `updated_checkout` event only. This event always triggered by WooCommerce after the checkout is loaded. So, this change prevents PayPal buttons from being rendered twice. See https://github.com/woocommerce/woocommerce/blob/master/assets/js/frontend/checkout.js for more details.
This commit is contained in:
parent
25282da555
commit
f121605e41
1 changed files with 0 additions and 2 deletions
|
@ -11,8 +11,6 @@ class CheckoutBootstap {
|
|||
|
||||
init() {
|
||||
|
||||
this.render();
|
||||
|
||||
jQuery(document.body).on('updated_checkout', () => {
|
||||
this.render();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue