Bug 238545 - datetime-local - hard to enter values
Summary: datetime-local - hard to enter values
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 249782 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-03-30 03:44 PDT by Jake Archibald
Modified: 2022-12-22 19:52 PST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jake Archibald 2022-03-30 03:44:12 PDT
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local

There's a pretty agressive timeout when entering values in this field type.

Eg:

1. Highlight the year
2. Press '2', year changes to 0002
3. Wait a couple of beats, like a user who isn't massively confident with the keyboard
4. Press '0', year changes to 0001

If you don't leave a beat between steps 2 & 4, the year will be 0020, which is more expected.

This is particularly problematic for the year, hour, and minute, since there isn't really a non-keyboard alternative to selecting those.
Comment 1 Aditya Keerthi 2022-03-30 20:06:38 PDT
The current timeout is 1 second after the previous keypress, which matches the timeout used by NSDatePicker (the native date input on macOS).

I agree that a slightly larger timeout would be nice, but I think we will want to continue to match the native behavior. I will need to see if there is willingness to change this behavior system-wide.
Comment 2 Jake Archibald 2022-03-30 23:20:02 PDT
I understand the aim for consistency, but it seems like that native date picker is a bit… out of date. It doesn't seem to follow modern design practices across the OS, eg the design is really tight.

It's probably worth getting some internal accessibility folks to take a look at it, because someone with a motor impairment (even a temporary/situation one) will struggle to use this input.
Comment 3 Stephen Belovarich 2022-03-31 01:58:13 PDT
If Apple truly cares about accessibility then the right thing to do in this scenario is an end to end review of the date picker including NSDatePicker and making a decision based on metrics, analytical data rather than relying on historical precedent of a potentially faulty user experience to guide decision making.
Comment 4 Radar WebKit Bug Importer 2022-04-06 03:45:18 PDT
<rdar://problem/91345351>
Comment 5 Aditya Keerthi 2022-12-22 19:52:21 PST
*** Bug 249782 has been marked as a duplicate of this bug. ***