I am getting the same issue when loading the normal webform page with the setting "Use Ajax" turned on in the webform settings.
- ๐บ๐ธUnited States greatmatter
Thank you, @gobind-singh - as soon as reCAPTCHA 3.2 is released (or whatever implements the fixes in that issue), we'll port them to this module.
- ๐จ๐ญSwitzerland stefanos.petrakis Biel, Switzerland
stefanos.petrakis โ made their first commit to this issueโs fork.
- ๐จ๐ญSwitzerland stefanos.petrakis Biel, Switzerland
stefanos.petrakis โ changed the visibility of the branch 3330710-PoC-render-when-empty to hidden.
- ๐จ๐ญSwitzerland stefanos.petrakis Biel, Switzerland
stefanos.petrakis โ changed the visibility of the branch 3330710-PoC-render-when-empty to active.
- Status changed to Needs review
4 months ago 4:06pm 22 February 2024 - ๐จ๐ญSwitzerland stefanos.petrakis Biel, Switzerland
I got a small PoC working that may solve the issue(s) reported here.
For the time, Merge request !3 is available for testing if somebody would have the curiosity/time.
I will move this to Needs Review to get some eyes moving, the maintainers can decide to move this back to Postponed if they feel that this issue should follow the outcomes of ๐ Ajax support / Use behaviors Needs work
-
greatmatter โ
committed c2afc759 on 1.0.x authored by
stefanos.petrakis@gmail.com โ
Resolve #3330710 "Poc render when empty"
-
greatmatter โ
committed c2afc759 on 1.0.x authored by
stefanos.petrakis@gmail.com โ
- ๐บ๐ธUnited States greatmatter
Thank you, Stefanos! I've merged it, and added it to a dev release for testing. Once it's RTBC, I'll make it a supported release.
- Status changed to Needs work
4 months ago 3:32pm 7 March 2024 - ๐บ๐ธUnited States greatmatter
This patch doesn't work when AJAX is not enabled, unfortunately, including other non-webform forms.
- ๐จ๐ญSwitzerland stefanos.petrakis Biel, Switzerland
All right, let's work on this more then. Is there more to know apart from disabling AJAX?
- ๐บ๐ธUnited States greatmatter
Unfortunately, I'm not sure--my own use cases don't use AJAX, so my testing is a bit limited.
- ๐จ๐ญSwitzerland stefanos.petrakis Biel, Switzerland
At least some steps to reproduce?
I tried with a simple webform without AJAX, got a console warning, but, the submission worked.Alternatively, could you try to replace the following in
turnstile.libraries.yml
:- core/jquery
to
- core/drupal.ajax
If that solves the problem you are having (related to the console warnings), then I have an idea how to update the PR.
- ๐จ๐ฟCzech Republic parisek
I have similar issue and this MR fixes it for me (I'm using it exclusively for webform with AJAX enabled), thank you
greatmatter: Could you provide more information where it's not working (exact example) or steps to reproduce?