New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 633149 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Feature



Sign in to add a comment

Support implicit form submission on input[type=date]

Reported by mjsta...@gmail.com, Aug 1 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36

Example URL:
http://plnkr.co/edit/mvMcWilVqODeiiWvE9mD?p=preview

Steps to reproduce the problem:
1. Create a form and add a date input as its only child element.
2. Focus the date input
3. Press Enter

What is the expected behavior?
The form is submitted / submit event is fired (implicit submission)

What went wrong?
Nothing happens.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? N/A 

Chrome version: 52.0.2743.82  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 22.0 r0

Since browsers are encouraged to implement implicit submission https://www.w3.org/TR/html5/forms.html#implicit-submission, I'd expect any input type to submit the form on Enter press.
I know that there is no requirement, but for the sake of consistency it should be implemented. At the moment, Chrome also doesn't have another function mapped to Enter in date inputs. The absence of this makes it difficult to create a form that does not have any submit buttons in a cross-browser way, as FF and others dont' have date pickers yet.

Edge actually opens / closes the date picker in this case, so the problem exists there too.
 
Labels: Needs-Bisect
Cc: nyerramilli@chromium.org
Labels: -Needs-Bisect M-54 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Thanks for the report.

Able to reproduce the issue on Win7/10, Mac OS X 10.11.5, Ubuntu 14.04 using Chrome Stable 52.0.2743.82, Beta 53.0.2785.34, Dev 54.0.2810.2 and Canary 54.0.2815.0

This is long standing issue, existing from M30 # 30.0.1549.0 (Official Build 208818), requesting Dev team to please check the issue and update.

attached screen cast for reference.
633149.mp4
888 KB View Download

Comment 3 by kochi@chromium.org, Aug 2 2016

Components: -Blink Blink>Forms>Date
Owner: tkent@chromium.org
Status: Assigned (was: Untriaged)
Assigning tkent-san.

Comment 4 Deleted

Comment 5 by tkent@chromium.org, Aug 2 2016

Components: Blink>Forms>Submission
Summary: Support implicit form submission on input[type=date] (was: Submit event is not fired on pressing Enter in date input elements.)

Comment 6 by tkent@chromium.org, Aug 2 2016

Labels: -Type-Bug Type-Feature
Status: WontFix (was: Assigned)
> Edge actually opens / closes the date picker in this case, so the problem exists there too.

Android Chrome also opens a picker by Enter key.

If we support implicit submission on input[type=date] on desktop platforms, it would be difficult for web developers to disable implicit submission. On the other hand, web developers can add implicit submission behavior easily.  So, we had better not add it.

Sign in to add a comment