revolunet / react-mailchimp-subscribe

React subscribe form for Mailchimp.
https://revolunet.github.io/react-mailchimp-subscribe/
244 stars 49 forks source link

Demo CustomForm does not work on mobile #51

Open juliacodes opened 3 years ago

juliacodes commented 3 years ago

I'm using the demo's custom form and when testing it on mobile I realized that the customForm submit button isn't firing the onValidated event.

When I noticed the problem in my own code, I realized that the demo version also doesn't work on mobile either.

Is this a simple change or is there a complex issue with the demo that is breaking the validation?

juliacodes commented 3 years ago

I've looked further into this issue and used the Safari mobile debugging tool to view the console from my device. The actual onClick event is firing, but the onValidated function is resulting in an error.

Screen Shot 2020-10-06 at 1 30 53 PM

I don't know why its saying the input is undefined but only on mobile. This entire application works seamlessly on desktop.

Any help would be very appreciated!