Ticket #5052 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

datepicker: Set focus error in IE8 for disabled and hidden elements

Reported by: viraj.kanwade Owned by:
Priority: major Milestone: 1.8
Component: ui.datepicker Version: 1.7.2
Keywords: datepicker, IE8, disabled, display, none, hidden Cc:
Blocking: Blocked by:

Description

I added a textbox and attached a datepicker with a calendar button to it. To simply things for me, I disabled the textbox so that the user can enter date only through the calendar.

Everything worked fine till I tried it in IE8.


Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. Line: 573 Char: 5 Code: 0 URI:  http://localhost/js/ui.datepicker.js


From the error, I figured out that IE8 has some issues setting focus to disabled or hidden elements.

A patch would be submitted in the next post.

Attachments

ui.datepicker.ie8.disabled.displaynone.fix.patch Download (176 bytes) - added by viraj.kanwade 4 years ago.
Patch to fix the issue

Change History

Changed 4 years ago by viraj.kanwade

Patch to fix the issue

comment:1 Changed 4 years ago by scott.gonzalez

  • Milestone changed from TBD to 1.8

With this patch, the type=hidden check is redundant with the addition of .is(':visible')

comment:2 Changed 4 years ago by kbwood

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r3728.

Note: See TracTickets for help on using tickets.