react-mailchimp-subscribe icon indicating copy to clipboard operation
react-mailchimp-subscribe copied to clipboard

Demo CustomForm does not work on mobile

Open juliacodes opened this issue 5 years ago • 1 comments

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 avatar Oct 06 '20 01:10 juliacodes

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!

juliacodes avatar Oct 06 '20 17:10 juliacodes