mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 04:58:28 +08:00
Disable the Vaulting checkbox on page load before handling the UI
Otherwise the Pay Later options would stay disabled when vaulting was disabled from the PayPal account.
This commit is contained in:
parent
3d03097110
commit
b42e3d5623
1 changed files with 1 additions and 1 deletions
|
@ -65,8 +65,8 @@
|
|||
atLeastOneChecked(vaultingCheckboxes) ? disablePayLater() : enablePayLater()
|
||||
}
|
||||
|
||||
togglePayLater()
|
||||
disableAll( disabledCheckboxes )
|
||||
togglePayLater()
|
||||
|
||||
vaultingCheckboxes.forEach(node => node.addEventListener('change', togglePayLater));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue