Opened 10 years ago

Closed 10 years ago

#5259 closed bug (fixed)

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.

Change History (2)

comment:1 Changed 10 years ago by sherington

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

comment:2 Changed 10 years ago by Scott González

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.