Opened 10 years ago

Closed 10 years ago

#3679 closed bug (worksforme)

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();

Change History (2)

comment:1 Changed 10 years ago by rdworth

Milestone: TBD1.6

comment:2 Changed 10 years ago by caphun

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.

Note: See TracTickets for help on using tickets.