Support implicit form submission on input[type=date]
Reported by
mjsta...@gmail.com,
Aug 1 2016
|
|||||
Issue descriptionUserAgent: 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.
,
Aug 2 2016
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.
,
Aug 2 2016
Assigning tkent-san.
,
Aug 2 2016
,
Aug 2 2016
> 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 |
|||||
Comment 1 by ligim...@chromium.org
, Aug 1 2016