Skip to main content

Search and Top Navigation

#15087 closed bug (duplicate)

Opened October 21, 2016 01:35PM UTC

Closed October 23, 2016 11:52AM UTC

jQuery UI Date Picker Bug 2001

Reported by: tunwin819 Owned by: tunwin819
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:
Description

When using an icon trigger, if the date is preset to a 2001 date. When changing date using the calender picker. The year field will not update.

To reproduce:

https://jqueryui.com/datepicker/#icon-trigger

  • Manually enter 10/12/2001
  • Click the calender Icon and select Oct 01 2016.
  • The date will change to 10/01/2001 instead of 10/01/2016
Attachments (0)
Change History (12)

Changed January 01, 1970 12:24AM UTC by tunwin819 comment:1

status: pendingnew

Changed January 01, 1970 12:24AM UTC by tunwin819 comment:2

status: pendingnew

Changed October 21, 2016 01:39PM UTC by tunwin819 comment:3

Preset date can be any date that is not the current year. To reproduce, select any date in the current year (2016).

Changed October 21, 2016 01:40PM UTC by scottgonzalez comment:4

owner: → tunwin819
status: newpending

200 clicks later and I see no problem. Are you seeing this only in a certain browser?

Changed October 21, 2016 01:56PM UTC by tunwin819 comment:5

_comment0: JsFiddle: http://jsfiddle.net/qnA5R/49/1477058271361117
_comment1: JsFiddle: http://jsfiddle.net/qnA5R/50/1477058288013754

JsFiddle: http://jsfiddle.net/qnA5R/50/

Able to reproduce in Firefo an Chrome

Changed October 21, 2016 01:58PM UTC by scottgonzalez comment:6

status: newpending

That's working fine for me, and the start date is outside the valid range.

Changed October 21, 2016 02:03PM UTC by tunwin819 comment:7

That seems to be the issue. If the start date is outside the valid range. Then when clicking the icon to open the calender, the years fail to update.

Changed October 21, 2016 03:30PM UTC by scottgonzalez comment:8

resolution: → worksforme
status: newclosed

I've had someone else also confirm that everything is working properly for them. None of your instructions have resulted in an incorrect behavior for anyone else, so I'm going to close this ticket.

Changed October 22, 2016 07:58AM UTC by tunwin819 comment:9

Currently uploading a screencast that shows the bug

Changed October 22, 2016 08:03AM UTC by tunwin819 comment:10

Here is the video:

https://www.youtube.com/watch?v=uPtYFs8dCb8&feature=youtu.be

As you can see, when I select the date. It should change to a date in 2006. The day and month change, but the year does not.

Changed October 23, 2016 11:51AM UTC by scottgonzalez comment:11

resolution: worksforme
status: closedreopened

That video shows different steps than what you provided originally. This is #8873. What you're doing is selecting a date from 2001 because that's the date you started from, and you never changed what month/year you were looking at. The yearRange option has no effect on the valid date range, so when you're looking at a date that isn't within the year range, the dropdown cannot show you which year you're currently viewing.

I'm reopening just to re-close with proper metadata.

Changed October 23, 2016 11:52AM UTC by scottgonzalez comment:12

resolution: → duplicate
status: reopenedclosed

Duplicate of #8873.