Open Bug 1850383 Opened 3 years ago Updated 3 years ago

Poor support for datetime-local (no time, and null-value if time not selected)

Categories

(Core :: Layout: Form Controls, defect)

Firefox 116
defect

Tracking

()

Tracking Status
firefox-esr115 --- affected
firefox117 --- affected
firefox118 --- affected
firefox119 --- affected

People

(Reporter: jitbit, Unassigned)

Details

Steps to reproduce:

input type=datetime-local has no time picker. So when the user selects date only (of course he does, there's no time picker!) - the whole input returns NULL in both .value in JS and in POST data. The user expects it to return a date with 00:00 time, like it does in all other browsers.

And since onchange does not fire when the user selects the date only (which is another bug), we can't even add any JS workaorunds to add "00:00" time manually

Thank you for submitting this report.
Could you share the corresponding webpage where you encountered this issue in order to reproduce it?

Flags: needinfo?(jitbit)
Flags: needinfo?(jitbit)

I've reproduced this issue in the latest Nightly 119.0a1 and Firefox 117.0 versions on Windows 10 x64.
Setting the component and waiting for the developer's opinion about it.
If this is not the correct component, please feel free to change it to a more appropriate one.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.