Skip to content

Commit

Permalink
Schedule Filter: Cannot clear dates when selecting a range (#2770)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao authored Oct 18, 2024
1 parent a52aa7d commit e47fa26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/core/xibo-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ $(document).ready(function() {
if(calendar != undefined) {
let selectedDate = moment(moment($('#fromDt').val()).format(systemDateFormat));
// Add event to the picker to update the calendar
calendar.navigate('date', selectedDate);
// only if the selected date is valid
if (selectedDate.isValid()) {
calendar.navigate('date', selectedDate);
}
}
};

Expand Down

0 comments on commit e47fa26

Please sign in to comment.