Opened 12 years ago
Last modified 7 years ago
#7765 open bug
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
Change History (15)
comment:1 Changed 11 years ago by
Type: | enhancement → feature |
---|
comment:2 Changed 11 years ago by
Milestone: | 1.9.0 → 1.11.0 |
---|
comment:3 Changed 11 years ago by
comment:5 Changed 11 years ago by
Status: | new → open |
---|---|
Type: | feature → bug |
comment:6 Changed 11 years ago by
Summary: | Focus after selecting using datepicker → Datepicker: 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/.
comment:7 follow-up: 8 Changed 11 years ago by
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
comment:8 Changed 11 years ago by
Replying to 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 :)
comment:10 Changed 11 years ago by
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.
comment:12 Changed 10 years ago by
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.
comment:12 Changed 10 years ago by
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.
comment:13 Changed 9 years ago by
Milestone: | 1.11.0 → none |
---|
#8668 is a duplicate of this ticket.