Fix javascript error in reCAPTCHA page when creating issue
requested to merge gitlab-jh/jh-team/gitlab:fix-javascript-throws-error-in-recaptcha-page into master
What does this MR do and why?
closes #362639 (closed)
This MR adds a return condition to make new IssuableForm($('.issue-form'))
doesn't run following code when .issue-form
element doesn't exist
/cc @daveliu
Screenshots or screen recordings
How to set up and validate locally
- enter creating issue page
- type some spam style text for issue's title and description(
123123123test
for example) - click create issue
- wait page jump to reCAPTCHA resolving page, and open the console of browser.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Kun Qian