Opened 9 years ago

Closed 9 years ago

#6747 closed bug (notabug)

yearRange option relative to today's year returns a single year

Reported by: ericlanehart Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8
Keywords: Cc:
Blocked by: Blocking:

Description

When setting the yearRange option to a range in the style of '-40:2', only a single year is returned in the dropdown menu enabled with changeYear. The year is the oldest year that would have otherwise been returned as an option. Changing the format to double digits doesn't have an effect. This bug seems to have been introduced in 1.4.0/1.8.0, as this option worked in 1.3.2/1.7.3.

Compare:

to:

Change History (1)

comment:1 Changed 9 years ago by Scott González

Resolution: invalid
Status: newclosed

"-40:2" means all the years beween 40 years ago and the year 2. What you want is "-40:+2"

Note: See TracTickets for help on using tickets.