mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
focus on the cc number input field, when selecting the credit card gateway
This commit is contained in:
parent
49c66ecd00
commit
4ab723feac
1 changed files with 7 additions and 0 deletions
|
@ -81,6 +81,13 @@ class CreditCardRenderer {
|
|||
submitEvent
|
||||
);
|
||||
});
|
||||
|
||||
document.querySelector('#payment_method_ppcp-credit-card-gateway').addEventListener(
|
||||
'click',
|
||||
() => {
|
||||
document.querySelector('label[for=ppcp-credit-card-ppcp-hosted-fields]').click();
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
export default CreditCardRenderer;
|
Loading…
Add table
Add a link
Reference in a new issue