mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Disable "Add payment method" button while adding card
This commit is contained in:
parent
707dfa6d8c
commit
b8e85fe3f2
1 changed files with 2 additions and 2 deletions
|
@ -95,11 +95,11 @@ import {
|
|||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.getElementById('place_order').disabled = true;
|
||||
event.preventDefault();
|
||||
|
||||
cardFields.submit().catch( ( error ) => {
|
||||
console.error( error );
|
||||
document.getElementById('place_order').disabled = false;
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue