Closed Bug 1347621 Opened 7 years ago Closed 7 years ago

<input date> month dropdown and <input time> scroll arrows go the wrong way

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1348052

People

(Reporter: Kwan, Unassigned)

References

(Blocks 1 open bug, )

Details

This could maybe be two separate bugs, but I think it needs to be consistent either way, so keeping as one.

STR:
1. Click in an <input type="date">
2. Click on the "Month YYYY" to open the month & year selection drop down
3. Click on the arrow below the years

1. Click in an <input type="time">
2. Click on one of the arrows at the bottom

Expected results:
Should offer years/times after the one at the bottom (the view should move in the direction of the arrow)

Actual results:
Offers years/times before the year/time at the top (the viewed object is moved in the direction of the arrow)

Maybe this should vary depending on platform? (perhaps the current behaviour is correct on mac?)

Note that the arrows in the initial date dropdown work as expected (moving the view, increasing the month)
Note that this was originally spotted by Aryx:
>Aryx: thanks. if you want, you can file that the up and down buttons push into the wrong direction (or check for more bugs)

Part of the confusion might be due to a differing mental association, of whether the arrows are controlling the _view_, or perhaps the numerical _value_ (looking at the source code, and the up = + 1, down = - 1).
One way of fixing it while keeping the numerical association would be to reverse the display order, so earlier dates are on the bottom

2017
2016
2015
2014

etc.
There is more activity in bug 1348052, so duping it against that.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.