jQuery: The Write Less, Do More JavaScript Library

Ticket #2859 (new bug)

Opened 3 months ago

Last modified 2 months ago

Datepicker 3.4.3 'change' commits changes to all datepickers

Reported by: mnichols Assigned to: kbwood
Type: bug Priority: critical
Milestone: 1.2.4 Component: ui
Version: 1.2.3 Keywords: datepicker 3.4.3 change
Cc: Needs: Review

Description

When trying to use the 'change' function, the new settings are applied to all datepickers on page. For example, with the code below, one would expect that only the input 'myrange' would be a ranged datepicker, but in fact it causes all pickers to become range-aware. If this is by design it should be made clearer.

To test: <input type="text" class="date" id="plainoledate"/> <script type="text/javascript"> $(document).ready(function(){ $('.date').datepicker(); }); </script> <input type="text" class="date" id="myrange"/> <script type="text/javascript"> $(document).ready(function(){ $('#myrange').datepicker('change',{ rangeSelect: true}); }); </script>

Attachments

Change History

Changed 2 months ago by paul

  • owner changed from paul to kbwood
Note: See TracTickets for help on using tickets.