Search and Top Navigation
#5897 closed bug (fixed)
Opened August 04, 2010 09:29AM UTC
Closed August 04, 2010 09:40AM UTC
Last modified November 19, 2010 06:26PM UTC
Datepicker: inconsistent behavior in IE when click to close month and year drop-downs
Reported by: | rdworth | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.4 |
Component: | ui.datepicker | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Using a datepicker with month and year drop-downs, if you click to expand a drop-down, then click in the same place to collapse it, the focus is set back to the instance element input. Except in IE. In IE, the focus stays on the drop-down.
Attachments (0)
Change History (5)
Changed August 04, 2010 09:32AM UTC by comment:1
Changed August 04, 2010 09:39AM UTC by comment:2
summary: | Datepicker: inconsistent behavior in IE when open and close month and year drop-downs without selecting → Datepicker: inconsistent behavior in IE when click to close month and year drop-downs |
---|
Changed August 04, 2010 09:40AM UTC by comment:3
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed in 85b8816
Changed August 06, 2010 12:21AM UTC by comment:4
milestone: | 1.9 → 1.8.4 |
---|
Changed November 19, 2010 06:26PM UTC by comment:5
Datepicker: use a setTimeout 0 so the same code can run in IE (as other browsers) to set focus back to the datepicker text input if a month or year drop-down is clicked closed. Fixes #5897 - Datepicker: inconsistent behavior in IE when click to close month and year drop-downs
Changeset: 85b8816fa9480005aedb3354714abbc1ead06897
There is a check to have this code not run in IE.
http://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.datepicker.js#L849
Testing shows this check is there because in IE the first click to expand the drop-down sometimes cause the drop-down to collapse immediately because focus goes from the drop-down to the text input. This can fixed by using a setTimeout 0 instead, so that IE can have the same behavior as other browsers.