Skip to content

Click focused another window on IE8 #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tmcconechy opened this issue Dec 7, 2011 · 8 comments
Closed

Click focused another window on IE8 #40

tmcconechy opened this issue Dec 7, 2011 · 8 comments

Comments

@tmcconechy
Copy link

Hi!
Something strange is happening when focusing the control in IE8. Please try the following:

-Open any window such as outlook
-Open IE8.
-Position the IE8 window and the second window so that they overlap and are same size
-open the demo page: http://labs.abeautifulsite.net/jquery-selectBox/
-click into any of the listboxes...

Note when you click in the other window will focus. If you press refresh and try again each time on the first click the other window will focus.

Any ideas?
Thanks
Tim

@pppdns
Copy link

pppdns commented Dec 20, 2011

exactly the same issue with IE 8 (using JQuery 1.7.1)

@claviska
Copy link
Contributor

Damn, I've seen this before in the first version of this plugin but I can't remember what caused it (this was during my pre-GitHub days). I'll try to tackle it again.

@tmcconechy
Copy link
Author

Any luck with this one?
Thanks

@tmcconechy
Copy link
Author

Any idea what is cauing this?
Thanks

@ghost
Copy link

ghost commented Feb 21, 2012

You can't call body.blur() in IE without causing this issue. Get the unminified version of the javascript and then find this line:

$(document.activeElement).blur();

Change it to:

if (document.body != document.activeElement)
{
$(document.activeElement).blur();
}

@claviska
Copy link
Contributor

Nice. Can anyone confirm that this indeed solves the problem? If so I'll get it in there.

@tmcconechy
Copy link
Author

Yes, This seems to fix it. Thanks!

claviska added a commit that referenced this issue Feb 21, 2012
@claviska
Copy link
Contributor

Thanks, updated.

alinpredoi pushed a commit to alinpredoi/jquery-selectBox that referenced this issue Mar 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants