Skip to main content

Search and Top Navigation

#10537 open bug ()

Opened August 11, 2014 03:48PM UTC

Last modified August 11, 2014 05:49PM UTC

Datepicker: onSelect called twice when date selected with enter key

Reported by: poff Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:
Description

The onSelect function is called twice in the following cases:

  • When no date was previously selected, and a date is selected with the enter key
  • When a date was previously selected, and a new date is selected by moving onto it keyboard interaction and pressing the enter key

If the date is selected by clicking on it with the mouse, onSelect is only called once in all these cases.

Example to demonstrate with alerts: http://jsfiddle.net/my1ade6t/

Attachments (0)
Change History (1)

Changed August 11, 2014 05:49PM UTC by tj.vantoll comment:1

status: newopen

Confirmed. I verified this is no longer an issue in the rewrite: http://view.jqueryui.com/datepicker/demos/datepicker/default.html.