mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Check if WC invalid class is visible
This commit is contained in:
parent
d9ad48cc6e
commit
500487f5f9
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ const bootstrap = () => {
|
|||
requiredFields.each((i, input) => {
|
||||
jQuery(input).trigger('validate');
|
||||
});
|
||||
if (jQuery('form.woocommerce-checkout .woocommerce-invalid').length) {
|
||||
if (jQuery('form.woocommerce-checkout .woocommerce-invalid:visible').length) {
|
||||
errorHandler.clear();
|
||||
errorHandler.message(PayPalCommerceGateway.labels.error.js_validation);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue