Rely on Bootstrap opening the recaptcha modal
The recaptcha modal in the Web IDE maintains its state (visible or hidden) in the parent component. After https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16189 has been merged, the same is possible via data attributes (or jQuery if necessary).