Skip to main content

Search and Top Navigation

#15255 new bug ()

Opened December 01, 2017 03:07AM UTC

Last modified December 01, 2017 03:07AM UTC

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!

Attachments (0)
Change History (0)