Skip to main content

Search and Top Navigation

#5259 closed bug (fixed)

Opened March 02, 2010 06:26PM UTC

Closed March 03, 2010 01:31AM UTC

DatePicker will not ever close

Reported by: sherington Owned by:
Priority: major Milestone: 1.8
Component: ui.datepicker Version: 1.8rc3
Keywords: Cc:
Blocked by: Blocking:
Description

This exact same code works fine with JQueryUI 1.7.2, but with 1.8rc3 the date picker opens, but can not ever be closed - I expect either tabbing off the input field, clicking the associated button again, or selecting a date to close the picker but it doesn't. Clicking elsewhere in the page does not close the picker either.

<html>
  <head>
    <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="jquery-ui-1.8rc3.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="jquery-ui-1.8rc3.custom.css"/>
    <script type="text/javascript">
    $(function() {
      $("input.datePicker").datepicker({dateFormat: 'dd/mm/yy', changeMonth: false, changeYear: false, showOn: 'both',
        buttonImageOnly: true, buttonImage: 'calendar.png', numberOfMonths: 1, gotoCurrent: true, duration: ''});
    });
    </script>
  </head>
  <body>

    <input type="text" class="datePicker"/>

  </body>
</html>

Change the JQueryUI script tag to load 1.7.2 and it works as expected.

Attachments (0)
Change History (2)

Changed March 02, 2010 06:28PM UTC by sherington comment:1

This failed when executed on Firefox 3.5.8 on Ubuntu and Firefox 3.6 on WindowsXP.

Changed March 03, 2010 01:31AM UTC by scottgonzalez comment:2

resolution: → fixed
status: newclosed

Fixed in r3865. This is really a user error as an empty string isn't a valid duration.