Opened 10 years ago

Closed 8 years ago

#4878 closed bug (notabug)

datepicker focus throws exception if input not visible in IE7

Reported by: julian.jelfs Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.7.2
Keywords: datepicker focus Cc:
Blocked by: Blocking:

Description

in some circumstances it is possible for the datepicker's focus event to be fired when the text field is not visible. This causes a script error and the datepicker popup appears in the wrong place (should not appear at all;

I have patched my own copy to only fire the focus event if input.is(":visible").

I have only tested this in IE7.

Change History (2)

comment:1 Changed 10 years ago by Jörn Zaefferer

Milestone: TBD1.8

IE is notorious about throwing errors when trying to focus hidden elements. Should be catched for checked upfront.

comment:2 Changed 8 years ago by Jörn Zaefferer

Resolution: invalid
Status: newclosed

We'll rewrite datepicker, which should take care of this issue. For now there's nothing here that helps to reproduce the issue, so closing it.

Note: See TracTickets for help on using tickets.