In checkout i moved “Apply Discount Code” form from afterMethods to beforeMethods.
After upgrade to 2.4.5 recaptcha was added to this form.
But doesnt load correctly
<div data-bind="{
attr: {
'id': getReCaptchaId() + '-wrapper'
},
'afterRender': renderReCaptcha()
}" id="recaptcha-checkout-coupon-apply-wrapper">
<div class="g-recaptcha"></div>
<!-- ko if: (!getIsInvisibleRecaptcha()) -->
<div class="field">
<div class="control">
<input type="checkbox" value="" class="required-captcha checkbox" name="recaptcha-validate-" data-validate="{required:true}">
</div>
</div>
<!-- /ko -->
</div>
This happen even when is disabled.
If I left the form in afterMethods works correctly.
Any suggestion?