Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component is not compatible with dialog element #201

Open
marcinburzynski opened this issue Sep 24, 2023 · 1 comment
Open

Component is not compatible with dialog element #201

marcinburzynski opened this issue Sep 24, 2023 · 1 comment
Assignees

Comments

@marcinburzynski
Copy link

Issue:
hCaptcha popup is hidden behind the dialog element

image

This is a real issue because the dialog element is already widely supported and we're going to see more and more modal implementations based on this element.
https://caniuse.com/?search=dialog

Expected behavior:
Either:
a) add a flag so that we can choose to render a captcha popup in a dialog
b) add a portalTarget prop so that we can pass element reference where popup should be rendered

@zoryana94
Copy link
Contributor

Hi @marcinburzynski ,

Thank you a lot for notifying us about the issue!
Unfortunately, I haven't been able to reproduce it. Do you have any custom styles (related to z-index, maybe)? What OS and browser have you used for testing?
It would be great if you could send us the piece of code with your implementation details or some test app, so that we could reproduce the issue.

Could you please also try to specify the challenge-container with the id the following way?

  <dialog open>
      <div id="hcaptcha-challenge-container"></div>
      <HCaptcha
        challenge-container="hcaptcha-challenge-container"
      />
  </dialog>

Best Regards,
hCaptcha Dev Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants