Datepicker yearRange bug

Datepicker yearRange bug

There is a blatant bug with te yearRange option.

The yearRange does NOT count from todays date - it counts from whatever year is currently selected.

E.g.
  1. $('#weddingdate').datepicker({
  2. yearRange: '-0:+5',
  3. });

Datepicker Year Dropdown =
2010
2011
2012
2013
2014
2015

That's fine - but if I then use the Datepicker to select a date and then open the Datepicker again, the bug appears. For example, after selecting a date from 2013 and then re-opening the Datepicker:

Datepicker Year Dropdown =
2013
2014
2015
2016
2017
2018

This is a major bug. Is this fixed in 1.8 ?

If this is not a bug, then how can I tell the Datepicker to only accept years that are within the range of:

>= current year and <= (current year + 5)

The minDate option seems to work ok.