insin / react-maskedinput

Masked <input/> React component

Home Page:http://insin.github.io/react-maskedinput/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Component doesn't submit in mozilla firefox

antoniotaha opened this issue · comments

Masked input doesn't submit when I run my application in Firefox. The problem ocurr when I try to submit my form pressing enter in the masked field. I think that is because:

In function onKeyPress it has

if (e.metaKey || e.altKey || e.ctrlKey || e.key === 'Enter') {
return;
}

but the key is NULL when I press enter in the field, then

e.preventDefault() stop my submit.