Skip to content

Commit 16f6944

Browse files
Re-enable button upon cancellation
1 parent 1db65f8 commit 16f6944

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jQuery ( $ ) ->
5959
return
6060

6161
if not confirm( @i18n.delete_ays )
62+
# re-enable the button if user cancels (side note: WooCommerce core is the one that added the disabled state in the first place)
63+
button.prop( 'disabled', false ).removeClass( 'disabled' )
6264
event.preventDefault()
6365

6466
)

0 commit comments

Comments
 (0)