Skip to main content

Search and Top Navigation

#3679 closed bug (worksforme)

Opened December 19, 2008 09:46AM UTC

Closed January 04, 2009 01:50PM UTC

focus error on IE if disabled

Reported by: aimerick Owned by:
Priority: critical Milestone: 1.7
Component: ui.datepicker Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:
Description

if the input is disabled, IE can't give focus and return JS error.

solution on line 583 :

if (inst.input[0].type != 'hidden')

inst.input[0].focus();

to replace by:

if (inst.input[0].type != 'hidden' && !inst.input[0].disabled)

inst.input[0].focus();

Attachments (0)
Change History (2)

Changed December 31, 2008 05:42PM UTC by rdworth comment:1

milestone: TBD1.6

Changed January 04, 2009 01:50PM UTC by caphun comment:2

resolution: → worksforme
status: newclosed

Tested against svn trunk in IE 6 & 7 - no JS error, see [1507] for test case. Flagging as worksforme as the suggested fix is not needed but this issue might have been fixed through other changes after the 1.6rc2 release.