Wappler Version : 3.9.7
Operating System : W10
Server Model: NodeJS (SPA)
Expected behavior
On resetting a form, there should be no recaptcha code excuting, if the form does not contain recaptcha.
Actual behavior
Keep getting this error everytime a form rest is called: form1.reset()
I have added recaptcha to the project (main layout) but its not being used in every single form in my app. So, every form that does not have recaptcha, I get this error in console on its reset.
I found some code in form.js which is the cause of this issue.
onreset: function(event) {
dmx.validateReset(this.$node);
if (window.grecaptcha) {
grecaptcha.reset();
}
dmx.requestUpdate();
}
Please share a fix.