Skip to content
Browse files

Datepicker demo: Fixed date range restriction when clearing dates. Fi…

…xes #5473 - Datepicker: Date range demo bug when clearing date.
  • Loading branch information...
1 parent 4d5197b commit a50516f77e82206f2d1f4188c9f5a242442ace09 @scottgonzalez scottgonzalez committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 demos/datepicker/date-range.html
View
4 demos/datepicker/date-range.html
@@ -15,7 +15,7 @@
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
- onSelect: function( selectedDate ) {
+ onClose: function( selectedDate ) {
$( "#to" ).datepicker( "option", "minDate", selectedDate );
}
});
@@ -23,7 +23,7 @@
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
- onSelect: function( selectedDate ) {
+ onClose: function( selectedDate ) {
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
}
});

0 comments on commit a50516f

Please sign in to comment.
Something went wrong with that request. Please try again.