Bug Tracker

Modify

Ticket #2446 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

a datepicker bug in IE6

Reported by: sinosaga Owned by: iMarc
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: datepicker Cc:
Blocking: Blocked by:

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()".

Change History

comment:1 Changed 5 years ago by paul

  • Owner changed from paul to iMarc

comment:2 Changed 5 years ago by paul

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

Fixed in r5404.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.