Skip to main content

Search and Top Navigation

#7594 closed bug (wontfix)

Opened August 02, 2011 05:04PM UTC

Closed August 02, 2011 05:36PM UTC

Datepicker, changeYear: true, yearRange should adjust to manually entered date on input field.

Reported by: Tuishimi Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.14
Keywords: Cc:
Blocked by: Blocking:
Description

In previous versions (1.7.x) of jquery-ui, if the user entered a manual date, the yearRange in the year dropdown box would adjust base on the currently entered date. In other words it overrode the year range (which I though was just to limit the years in the dropdown box). I believe this was a good feature and should be restored. The following code illustrates how it does not work... (using jquery 1.3.2 and ui 1.8.14)

<script src="includes/js/jquery.js"></script>

<script src="includes/js/jquery-ui.js"></script>

<script>

$(function() {

$( "#datepicker" ).datepicker( {

changeMonth: true,

changeYear: true,

yearRange: '-2:+2'});

});

</script>

<div class="demo">

<p>Date: <input id="datepicker" type="text"></p>

</div><!-- End demo -->

<div style="display: none;" class="demo-description">

<p>The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p>

</div><!-- End demo-description -->

Attachments (0)
Change History (1)

Changed August 02, 2011 05:36PM UTC by scottgonzalez comment:1

component: ui.coreui.datepicker
resolution: → wontfix
status: newclosed

This raises lots of design questions that we're not going to answer for the existing widget. Feel free to list your use case on the planning wiki for the new datepicker.