mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Move buttons loading spinner to the buttons container
should be more reliable, and for Pay Now there is no .place-order
This commit is contained in:
parent
a1d735bc79
commit
d791873033
2 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,7 @@ import {
|
|||
} from "./modules/Helper/CheckoutMethodState";
|
||||
import {hide, setVisible} from "./modules/Helper/Hiding";
|
||||
|
||||
const buttonsSpinner = new Spinner('.place-order');
|
||||
const buttonsSpinner = new Spinner('.ppc-button-wrapper');
|
||||
|
||||
const bootstrap = () => {
|
||||
const errorHandler = new ErrorHandler(PayPalCommerceGateway.labels.error.generic);
|
||||
|
|
|
@ -458,7 +458,9 @@ class SmartButton implements SmartButtonInterface {
|
|||
return;
|
||||
}
|
||||
|
||||
echo '<div id="ppc-button"></div>';
|
||||
// The wrapper is needed for the loading spinner,
|
||||
// otherwise jQuery block() prevents buttons rendering.
|
||||
echo '<div class="ppc-button-wrapper"><div id="ppc-button"></div></div>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue