Closed
Description
Pressing enter on an masked input isn't submitting the form.
I'm using 4.1.0 version.
To reproduce save this as a html and open it on a browser. Try to press enter on masked input and then try to press enter on not masked input:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://github.com/codermarcos/simple-mask-money/releases/download/v4.1.0/simple-mask-money.umd.js"></script>
</head>
<body>
<form action="https://www.google.com">
<label for="my-input">Masked input (enter doesn't work)</label>
<input type="text" id="my-input">
<br>
<br>
<label for="other-input">Not masked input (enter works)</label>
<input type="text" id="other-input" placeholder="press enter here">
<input type="submit" value="Submit">
</form>
<script>
SimpleMaskMoney.setMask('#my-input');
</script>
</body>
</html>
Metadata
Metadata
Assignees
Labels
Projects
Status
Done