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
This commit is contained in:
M Fahru 2024-01-22 07:25:25 -07:00 committed by Copybot
parent cd59ca2bea
commit c52b29bbaa

View file

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