Skip to main content

Search and Top Navigation

#4878 closed bug (notabug)

Opened September 25, 2009 10:14AM UTC

Closed February 27, 2012 01:50PM UTC

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.

Attachments (0)
Change History (2)

Changed November 16, 2009 08:10PM UTC by jzaefferer comment:1

milestone: TBD1.8

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

Changed February 27, 2012 01:50PM UTC by jzaefferer comment:2

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.