• Resolved petoknm

    (@petoknm)


    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]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter petoknm

    (@petoknm)

    There is an issue with front.multi.min.js?ver=1.15.0.1

    after formatting using chrome dev tools, b.extend on line 5751 runs fine every time followed by handle_submit_custom_form on line 5773, but on mobile devices the handle_submit_custom_form function does not get called.

    Please fix this in source code, debugging this in minified js is awful.

    Thread Starter petoknm

    (@petoknm)

    HTML is missing the expected elements at the time that forminatorFront() gets called in index, i.e. a race condition

    Plugin Support Adam – WPMU DEV Support

    (@wpmudev-support8)

    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,
    Adam

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Forminator Javascript on mobile devices does not register event listeners’ is closed to new replies.