Closed (fixed)
Project:
Cloudflare Turnstile
Version:
1.1.22
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2025 at 04:21 UTC
Updated:
11 Sep 2025 at 20:19 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #3
srdtwc commentedThis merge request should fix this issue. I've adjusted the Javascript to load turnstile with a callback, which seems to be the recommendation from Cloudflare. I don't think there's any downsides to this.
After applying this upgrade I had to clear caches. It should be tested thoroughly.
It would be helpful to hear if other people are also experiencing this issue.
Comment #4
srdtwc commentedScreenshot of the form after these changes were applied:
Comment #5
greatmatter commentedYou've made quite a few changes throughout the code; I'd like to make sure this issue is reproduceable pre-patch before evaluating the patch.
If you're able to check, do you see anything unusual in your mobile Chrome's error console?
Comment #6
srdtwc commentedHmm, I will take a closer look. I only made 2 small changes. I think the branch it merged was not what I intended.
Comment #7
srdtwc commentedOk it should be fixed now, sorry about that!
Comment #8
phernand42 commentedWe had a similar issue with dupe turnstile challenges inside our modal form. There seemed to be a conflict between the modal ajax which was triggered when a user opened the modal and CF rendering. Both were trying to render the challenge which seemed to be creating the dupes inside of our modal. We add the following timeout (via a local patch) to turnstile.ajax.js which removed the dupes for us.
Comment #9
greatmatter commentedIf you wouldn't mind, please check the dev version and let me know if the changes fix your issues.
Comment #10
srdtwc commentedThanks for making this change. I tested this out on my local ddev environment and everything appears to work as expected.
Comment #11
greatmatter commented