Design comparison
SolutionDesign
Solution retrospective
The button doesn't work on mobile, but in Chrome dev tools does. I tried some solutions that i've found in stackoverflow like adding listener to touchstart event or changing css to cursor: pointer but it didn't help.
$('#submit').on('touchstart click', handleClick);
`const handleClick = (e) => {e.preventDefault();validate(input.value);}`
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord