Ticket #5052 (closed bug: fixed)
datepicker: Set focus error in IE8 for disabled and hidden elements
|Reported by:||viraj.kanwade||Owned by:|
|Keywords:||datepicker, IE8, disabled, display, none, hidden||Cc:|
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.