Going to My Account > Payment Methods screen with two saved cards.
Attempting to delete one, the button does not click. Using inspect element I find:
`<a href=”`[`https://myexample.com/my-account/delete-payment-method/1111/?_wpnonce=79c3a2deb3`](https://myexample.com/my-account/delete-payment-method/1111/?_wpnonce=79c3a2deb3)`” class=”button delete disabled”>Delete</a>`
So why is this happening where it is automatically applying the disabled class to the payment method delete button?
We’re using the default template for this page, so this is the code for that template:
[https://github.com/woocommerce/woocommerce/blob/8.3.0/plugins/woocommerce/templates/myaccount/payment-methods.php](https://github.com/woocommerce/woocommerce/blob/8.3.0/plugins/woocommerce/templates/myaccount/payment-methods.php)​
`echo ‘<a href=”‘ . esc_url( $action[‘url’] ) . ‘” class=”button ‘ . sanitize_html_class( $key ) . ‘”>’ . esc_html( $action[‘name’] ) . ‘</a> ’;`
So the key in this case would be ‘delete’, so the class should just be class=”button delete” but instead it is “button delete disabled”?
Thanks for any help I can get!
​
[ad_2]