mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Remove disabled before triggering save button click
This commit is contained in:
parent
a26fb086dc
commit
38adb9bb21
1 changed files with 3 additions and 1 deletions
|
@ -326,7 +326,9 @@ window.ppcp_onboarding_productionCallback = function ( ...args ) {
|
|||
|
||||
isDisconnecting = true;
|
||||
|
||||
document.querySelector( '.woocommerce-save-button' ).click();
|
||||
const saveButton = document.querySelector( '.woocommerce-save-button' );
|
||||
saveButton.removeAttribute( 'disabled' );
|
||||
saveButton.click();
|
||||
};
|
||||
|
||||
// Prevent the message about unsaved checkbox/radiobutton when reloading the page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue