Closed Bug 1386792 Opened 9 years ago Closed 5 years ago

datepicker for input type=date does not initialize with the current date if min date is set

Categories

(Firefox for Android Graveyard :: General, enhancement, P2)

ARM
Android
enhancement

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: ronny.perinke, Unassigned)

References

()

Details

(Keywords: html5)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 Build ID: 20170726200247 Steps to reproduce: have an input[type=date] with a min value and an empty input-value <input type="date" min="1940-01-01"> Actual results: datepicker initializes with min date Expected results: datepicker should open with current date Is suggest the following logic 1) if value is set, initialize with value 2) if value is not set 2.1) if a min date is set and the current date is before the min date, initialize with the min date 2.2) if a max date is set and the current date is after the max date, initialize with the max date 2.3) else use the current date p.s. This should be implemented for Desktop as well.
Changing the product to core. @Scott could you have a look over this. Thanks!
Severity: normal → enhancement
Flags: needinfo?(scwwu)
OS: Android → All
Product: Firefox for Android → Core
Version: 54 Branch → Trunk
I couldn't reproduce the issue where it would initialize to the min value instead of today's date. Does it affect desktop or only fennec? However I agree it'd be a better UX to initialize to the max date if today is later than that date, and to the min date if today is earlier.
Flags: needinfo?(scwwu)
(In reply to Scott Wu [:scottwu] from comment #3) > Created attachment 8893481 [details] > <input type="date" min="1940-01-01"> > > I couldn't reproduce the issue where it would initialize to the min value > instead of today's date. Does it affect desktop or only fennec? > > However I agree it'd be a better UX to initialize to the max date if today > is later than that date, and to the min date if today is earlier. It does affect only fennec but my suggestion is for both because desktop initializes always with the current date when the input's value is empty.
Product: Core → Firefox for Android
[triage] I suspect if min date is early enough, date picker is useless (e.g. year is 1940): marking critical.
Priority: -- → P1
OS: All → Android
Hardware: All → ARM

Downgrading priority from P1 to P2

Priority: P1 → P2
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: