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

Issue 789257 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

datetime-local Clears Values Unnecessarily

Reported by tcor...@countrybrookdesign.com, Nov 28 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
1. Visit a page with the input "datetime-local"
2. If input doesn't yet have a value, input a full value ( ex. 10/31/2017 4:00:00 PM )
3. Lose focus
4. Click into Month, Day, or Hour field and change it.

What is the expected behavior?
That the specific field you clicked into (Month, Day, or Hour) is changed while the rest of the datetime remains unchanged.

What went wrong?
The entire value is cleared and you must tab or click back to the beginning of the input element to re-enter the entire value.

Did this work before? N/A 

Chrome version: 62.0.3202.94  Channel: stable
OS Version: 10.0
Flash Version:
 
Labels: Needs-Triage-M62
Cc: divya.pa...@techmahindra.com
Labels: Triaged-ET Needs-Feedback
@ tcorbin: Could you please provide a sample URL, that would help us in triaging the issue from TE-end
I apologize. In creating the test URL, I discovered that the issue was not with Chrome, but some Javascript meant to trim input sitewide:

$("input[type!='file']").change( function() {
		$(this).val($.trim($(this).val()));
});

I have since made an exception for the datetime-local input type, and it is working as intended. Again, my sincerest apologies.
Project Member

Comment 4 by sheriffbot@chromium.org, Nov 30 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "divya.padigela@techmahindra.com" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: vamshi.k...@techmahindra.com
Status: WontFix (was: Unconfirmed)
"As per comment#3 of the reporter, the issue is not with the chrome, Hence closing the issue.

Thanks!"

Sign in to add a comment