Explorar el Código

Merge pull request #16575 from overleaf/mf-fix-captcha-homepage-website-registration

[web] Attach aborted captcha event handler to body instead of '.content' to fix register flow on homepage website-redesign

GitOrigin-RevId: f3e5b67476fb2584b7b6eec26114f2cc6e00bfdb
M Fahru hace 2 años
padre
commit
c52b29bbaa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/web/frontend/js/features/form-helpers/captcha.js

+ 1 - 1
services/web/frontend/js/features/form-helpers/captcha.js

@@ -114,7 +114,7 @@ export async function validateCaptchaV2() {
     })
     // Attach abort handler once when setting up the captcha.
     document
-      .querySelector('.content')
+      .querySelector('[data-ol-captcha-retry-trigger-area]')
       .addEventListener('click', handleAbortedCaptcha)
   }