Opened 13 months ago

#15255 new bug

setDate(null) causes calendar to jump to current month

Reported by: JakeQZ Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.11.4
Keywords: Cc:
Blocked by: Blocking:

Description

.datepicker('setDate', null) ensures that no date in the calendar appears as 'selected'.

But it also undesirably causes the displayed calendar to jump to the current month (i.e. that of today's date). This is clearly undesirable and a bug as there cannot be any use case where this would be desired.

Please see fiddle: https://jsfiddle.net/sq63sgrx/

The comments in that fiddle also illustrate some other possible related shortcomings of the datepicker and its usability for developers and users. The default state before a date has been selected should surely be that no date has been selected, NOT that today's date has been selected!

Change History (0)

Note: See TracTickets for help on using tickets.