Merge pull request #534 from woocommerce/pcp-272-buttons-loading-time

Buttons loading time
This commit is contained in:
Emili Castells 2022-03-22 10:12:18 +01:00 committed by GitHub
commit eb247f1cba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 97 additions and 21 deletions

View file

@ -458,7 +458,9 @@ class SmartButton implements SmartButtonInterface {
return;
}
echo '<div id="ppc-button"></div>';
// The wrapper is needed for the loading spinner,
// otherwise jQuery block() prevents buttons rendering.
echo '<div class="ppc-button-wrapper"><div id="ppc-button"></div></div>';
}
/**