Skip to main content

Search and Top Navigation

#2446 closed bug (fixed)

Opened March 03, 2008 08:48AM UTC

Closed May 04, 2008 10:10AM UTC

Last modified February 26, 2009 11:59AM UTC

a datepicker bug in IE6

Reported by: sinosaga Owned by: iMarc
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.3
Keywords: datepicker Cc:
Blocked by: Blocking:
Description

in IE6,

/* Generate the date picker content. */
_updateDatepicker: function(inst) {
    inst._datepickerDiv.empty().append(inst._generateDatepicker());
    var numMonths = inst._getNumberOfMonths();
    if (numMonths[0] != 1 || numMonths[1] != 1) {
	inst._datepickerDiv.addClass('datepicker_multi');
    } 
    else {
	inst._datepickerDiv.removeClass('datepicker_multi');
    }
    if (inst._get('isRTL')) {
	inst._datepickerDiv.addClass('datepicker_rtl');
    }
    else {
        inst._datepickerDiv.removeClass('datepicker_rtl');
    }
    if (inst._input && inst._input[0].type != 'hidden') {
	inst._input[0].focus();
    }
},

will reported "undefined" in "inst._input[0].focus();"

when I use "$('#' + inst._input[0].id).focus();" instead of "inst._input[0].focus();", it will be ok.

I guess in IE6 it is not support "focus()".

Attachments (0)
Change History (4)

Changed March 03, 2008 03:46PM UTC by paul comment:1

owner: pauliMarc

Changed May 04, 2008 10:10AM UTC by paul comment:2

resolution: → fixed
status: newclosed

Fixed in r5404.

Changed May 24, 2008 03:39AM UTC by comment:3

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed February 26, 2009 11:59AM UTC by paul comment:4

milestone: → 1.5