Skip to main content

Search and Top Navigation

#7765 open bug ()

Opened October 05, 2011 03:55AM UTC

Last modified October 11, 2016 01:47PM UTC

Datepicker: Focus not placed back into textbox after date selection

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

The focus on selecting a date using datepicker is not going back to the textbox where it is being displayed(ie. selected date), if this is done then we can trigger a search etc on enter key press. I experianced this in IE7, Os: Windows XP

Attachments (0)
Change History (15)

Changed June 26, 2012 01:22AM UTC by scottgonzalez comment:1

type: enhancementfeature

Changed October 11, 2012 02:43PM UTC by scottgonzalez comment:2

milestone: 1.9.01.11.0

Changed October 13, 2012 12:33AM UTC by scottgonzalez comment:3

#8668 is a duplicate of this ticket.

Changed October 17, 2012 11:51PM UTC by scottgonzalez comment:4

#8681 is a duplicate of this ticket.

Changed October 19, 2012 10:19PM UTC by mikesherov comment:5

status: newopen
type: featurebug

Changed December 04, 2012 02:05PM UTC by tj.vantoll comment:6

summary: Focus after selecting using datepickerDatepicker: Focus not placed back into textbox after date selection

The OP mentioned individual browsers but the behavior is consistent across browsers - http://jsfiddle.net/tj_vantoll/tRdpr/.

Changed December 05, 2012 06:14AM UTC by sooraj comment:7

I got one fix for this. In the js add code to set focus to the textbox on key press.

Its working fine for me

Changed December 18, 2012 09:46PM UTC by schettino72 comment:8

Replying to [comment:7 sooraj]:

I got one fix for this. In the js add code to set focus to the textbox on key press. Its working fine for me

sooraj please provide a patch or a pull request :)

Changed January 06, 2013 07:50AM UTC by schettino72 comment:9

Changed January 06, 2013 09:15AM UTC by schettino72 comment:10

sorry, look at this one:

https://github.com/jquery/jquery-ui/pull/879

The previous one had a problem if the next input element is not in the same parent.

So now it is just focus back in the input the generated the datepicker.

Changed January 27, 2013 02:17AM UTC by tj.vantoll comment:11

#7266 is a duplicate of this ticket.

Changed March 19, 2014 05:50PM UTC by HWinMT comment:12

All of the fixes I have seen for this bug reset the focus to the datepicker in onSelect:. This has worked for me as well. Now in IE 11 it backfires and when the focus is reset to the datepicker it shows the calendar and can be nearly impossible to close. The work around that seems to work now for me is to move the focus to the next element in the data entry form in onClose: of the datepicker. That at least maintains tab order in the form.

Changed March 19, 2014 05:50PM UTC by HWinMT comment:13

All of the fixes I have seen for this bug reset the focus to the datepicker in onSelect:. This has worked for me as well. Now in IE 11 it backfires and when the focus is reset to the datepicker it shows the calendar and can be nearly impossible to close. The work around that seems to work now for me is to move the focus to the next element in the data entry form in onClose: of the datepicker. That at least maintains tab order in the form.

Changed June 24, 2014 11:38PM UTC by scottgonzalez comment:14

milestone: 1.11.0none

Changed October 11, 2016 01:47PM UTC by scottgonzalez comment:15

#15073 is a duplicate of this ticket.