Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Firefox] Form cannot be submitted with Enter key #197

Closed
xyzz opened this issue Aug 2, 2013 · 1 comment
Closed

[Firefox] Form cannot be submitted with Enter key #197

xyzz opened this issue Aug 2, 2013 · 1 comment
Labels

Comments

@xyzz
Copy link

xyzz commented Aug 2, 2013

Firefox 20.0.1, 22.0.

Consider the following HTML:

<!doctype html>

<meta charset="utf-8">

<meta name="author" content="Amsul - http://amsul.ca">

<meta name="viewport" content="width=device-width">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">

<title>pickadate.js / date</title>

<link rel="shortcut icon" href="demo/images/favicon.ico">
<link rel="stylesheet" href="demo/styles/main.css">
<link rel="stylesheet" href="lib/themes/default.css" id="theme_base">
<link rel="stylesheet" href="lib/themes/default.date.css" id="theme_date">
<link rel="stylesheet" href="lib/themes/default.time.css" id="theme_time">

<!--[if lt IE 9]>
    <script>document.createElement('section')</script>
<![endif]-->


<script src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
<script src="lib/picker.js"></script>
<script src="lib/picker.date.js"></script>
<script src="lib/picker.time.js"></script>
<script src="lib/legacy.js"></script>


<body>
<form method="POST">
<input type="text">
<input class="date">
<input type="submit">
</form>

<script>
$(".date").pickadate();
</script>
</body>

Submitting form by focusing on the first input and then pressing enter doesn't work in Firefox. (It does in Chromium) #72 is probably related.

@soundslocke
Copy link

I am experiencing this exact problem while implementing pickadate. Any form which contains a bound pickadate field cannot be submitted with the enter key in Firefox. Quite frustrating.

@amsul amsul closed this as completed in 248041b Oct 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants