Page MenuHomePhabricator

Date widget doesn't let you pick the auto-selected date when typing a year into the text field
Closed, ResolvedPublic

Description

Date widget doesn't let you pick the date when typing a year into the text field.

Steps to reproduce:

  1. Go to https://en.wikipedia.org/wiki/Special:Contributions (or any page with a date picker)
  2. Click on a date picker with no date selected
  3. Type "2020"
    image.png (585×631 px, 40 KB)
  4. Click on 1 January
    • Expected: "1 Jan 2020" (2020-01-01) is selected in the date picker
    • Actual: no date selected
      image.png (137×617 px, 8 KB)

It works if you click on any other day shown on the calendar.

Originally reported at https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Please_unfuck_page_history (heh)

Event Timeline

Change 960651 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] mw.widgets.DateInputWidget: Fix selecting when typing incomplete date

https://gerrit.wikimedia.org/r/960651

Jdforrester-WMF renamed this task from Date widget doesn't let you pick the date when typing a year into the text field to Date widget doesn't let you pick the auto-selected date when typing a year into the text field.Sep 25 2023, 5:09 PM

Change 960651 merged by jenkins-bot:

[mediawiki/core@master] mw.widgets.DateInputWidget: Fix selecting when typing incomplete date

https://gerrit.wikimedia.org/r/960651