insin / insin/react-maskedinput

Component doesn't submit in mozilla firefox

Open
#90 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
727
Forks
191
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.