IE7 and IE8 .focus() problem #318

Closed
cyclecz opened this Issue Oct 24, 2013 · 3 comments

2 participants

@cyclecz

Hi,

I had a problem with IE8 in 1.4.0pre version on line 562 and I identified the problem that IE 7+8 cannot focus not visible element.

So code:

if ( link.length ) {
    link[ 0 ].focus();
}

I changed to:

if ( link.length ) {
    if ( $(link[ 0 ]).is(':visible') ) { link[ 0 ].focus(); }
}

And works fine.
cyclecz

@fnagel
Owner

Is this reproducible in default demo? Please see #61

@fnagel
Owner

Any feedback on this issue?

@fnagel
Owner

Closed as no feedback was given.

@fnagel fnagel closed this Jun 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment