mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge pull request #2755 from woocommerce/PCP-3826-apple-pay-is-missing-from-on-all-pages-and-button-styling-preview-on-standard-payment-tab-and-advanced-processing-tab
Apple Pay button preview missing in Standard payment and Advanced Processing tabs (3826)
This commit is contained in:
commit
7c14ea9c8c
1 changed files with 11 additions and 4 deletions
|
@ -407,10 +407,17 @@ class ApplePayButton {
|
|||
.querySelectorAll( 'style#ppcp-hide-apple-pay' )
|
||||
.forEach( ( el ) => el.remove() );
|
||||
|
||||
const paymentMethodAppleLi = document.querySelector('.wc_payment_method.payment_method_ppcp-applepay' );
|
||||
if (paymentMethodAppleLi.style.display === 'none' || paymentMethodAppleLi.style.display === '') {
|
||||
paymentMethodAppleLi.style.display = 'block';
|
||||
}
|
||||
const paymentMethodAppleLi = document.querySelector(
|
||||
'.wc_payment_method.payment_method_ppcp-applepay'
|
||||
);
|
||||
|
||||
if (
|
||||
paymentMethodAppleLi &&
|
||||
( paymentMethodAppleLi.style.display === 'none' ||
|
||||
paymentMethodAppleLi.style.display === '' )
|
||||
) {
|
||||
paymentMethodAppleLi.style.display = 'block';
|
||||
}
|
||||
|
||||
this.allElements.forEach( ( element ) => {
|
||||
element.style.display = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue