Email sending issue with enter button
Closed this issue · 2 comments
rstan-dev commented
Email sending issue with enter button
rstan-dev commented
when I press enter on my keyboard after filling out the email, the page refreshes and the email is not sent out. If I click send then it sends out an email
yamesjamess commented
I've fix this issue by adding this code the email.js
document.getElementById('email').addEventListener('keydown', function(event) {
if (event.key === 'Enter') {
event.preventDefault();
document.getElementById('sendEmail').click();
}
});