Closed angelsvirkov closed 8 months ago
Thank you, @angelsvirkov, for the report and the PR; it is appreciated!
I do not have the Divi Contact Form Helper plugin for testing. Could you share a zip file via email to info@kagg.eu?
I have changed the issue name. It is not a bug but an enhancement. Our code does not support so far the premium plugin Divi Contact Form Helper.
@angelsvirkov, thank you for providing the plugin for testing. I have fixed the issue in this commit.
Great, thanks. Is there any roadmap or plan for the release of v4?
Great, thanks. Is there any roadmap or plan for the release of v4?
Yes, first days of April.
Some forms such as Divi Contact Form have the possibility to upload a file with the form. While doing so, the underlying code might already send an ajax request, which would trigger the
ajaxSuccess
event with some arbritrarysettings.data
type. It looks like the JS assets at./assets/js/1595567093/hcaptcha-divi.js
define an event listener which strictly expects that thesettings.data
has a callable propertyincludes
. The latter is not correct in the case of the file uploads. Therefore, the hCaptcha behaviour crashes and the whole form cannot be submitted.Steps to reproduce
ajaxSuccess
event where thesettings.data
is not a string but an object instead orI will try to submit a PR to fix this as it looks as a minor type guarding issue. -> My attempt to solve the issue https://github.com/hCaptcha/hcaptcha-wordpress-plugin/pull/326