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

Backdrop visible in 'invisible' mode even when no images are shown #64

Closed
dev2xl opened this issue Jul 28, 2024 · 1 comment
Closed
Assignees

Comments

@dev2xl
Copy link

dev2xl commented Jul 28, 2024

Issue:
The backdrop of the modal is displayed in invisible mode even when the process occurs automatically, and no images are shown.

Objective:
To display the backdrop only when images are shown, ensuring that users will see the modal only if they need to complete a manual challenge. If no manual challenge is required, the backdrop should remain hidden. This will enhance the user experience by avoiding unnecessary visual elements during the loading state.

It would be nice to conditionally display the backdrop based on whether images are shown. This is my current code, but I also have tried changing other props with no success yet.

 <ConfirmHcaptcha
        siteKey={""}
        ref={(_ref) => (captchaRef.current = _ref)}
        size="invisible"
        onMessage={onCaptchaMessage}
      />
@dev2xl
Copy link
Author

dev2xl commented Jul 28, 2024

This is possible with passiveSiteKey={true}. Closing this as completed. Thanks!

@dev2xl dev2xl closed this as completed Jul 28, 2024
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

2 participants