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

issue with livewire and turbolink #42

Open
sxshateri opened this issue Oct 17, 2021 · 1 comment
Open

issue with livewire and turbolink #42

sxshateri opened this issue Oct 17, 2021 · 1 comment

Comments

@sxshateri
Copy link

for some reason which i could not figure out, there is a bug using this package alongside turbolinks and livewire. if you have an action that needs ReCaptcha/honey verification it works the first time but if you intend to do it again you HAVE to refresh the page to get the new token or else the verification fails. not refreshing the page is the whole point of SPA and turbolinks. not sure what could be the issue since im not a javascript guru but i guess it might be because there is no data-turbolinks-track="true" for the ReCaptcha script.
any idea what is causing this issue and how to fix it?

@kyranb
Copy link

kyranb commented Mar 24, 2022

You may need to tear down something in the ReCaptcha script?

document.addEventListener('turbolinks:before-cache', () => {
// do whatever needs to be done to remove the recaptcha from the page
}
});

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