Remove disabled before triggering save button click

This commit is contained in:
Alex P. 2024-09-04 08:19:33 +03:00
parent a26fb086dc
commit 38adb9bb21
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -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.