Forminator Javascript on mobile devices does not register event listeners
-
I use forms and polls on my website (using AJAX submit) and when I use desktop everything works, but using my Android phone with Chrome causes the page to refresh when I click the submit button, inspecting it revealed that the submit button is missing critical click event listeners defined in front.multi.min.js and because the button is inside a form it causes a page reload without event.preventDefault().
I don’t know how/where the event listeners get registered but on mobile they don’t get registered successfully for some reason.
No errors in the console.
The page I need help with: [log in to see the link]
-
There is an issue with
front.multi.min.js?ver=1.15.0.1after formatting using chrome dev tools, b.extend on line 5751 runs fine every time followed by
handle_submit_custom_formon line 5773, but on mobile devices thehandle_submit_custom_formfunction does not get called.Please fix this in source code, debugging this in minified js is awful.
HTML is missing the expected elements at the time that forminatorFront() gets called in index, i.e. a race condition
Hi @petoknm
I hope you’re well today!
I understand that there’s a JS issue and I can see the refresh issue when testing poll on your site on my Android phone (in chrome) but I can’t so far replicate it with a simple poll on my test site. We need to be able to replicate the issue to fix it (regardless whether the fix requires changes to our code or some other steps).
That said, I noticed you are using Divi theme and the poll is displayed in popup. The popup – is it “Poups for Divi” plugin or some other popup plugin?
What version of Divi are you using and also – are there any additional asset (especially JS) optimization tools/options enabled on site currently?
Let me know, please.
Kind regards,
AdamHi @petoknm
I hope you are doing well and safe!
We haven’t heard from you in a while, I’ll mark this thread as resolved.
Feel free to let us know if you have any additional questions or problems.
Best Regards
Patrick Freitas
The topic ‘Forminator Javascript on mobile devices does not register event listeners’ is closed to new replies.