Opened 8 years ago
Last modified 8 years ago
#10537 open bug
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/
Note: See
TracTickets for help on using
tickets.
Confirmed. I verified this is no longer an issue in the rewrite: http://view.jqueryui.com/datepicker/demos/datepicker/default.html.