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

IE10 moves to background #7639

Closed
arschmitz opened this Issue Aug 22, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@arschmitz
Member

arschmitz commented Aug 22, 2014

if the body has focus and blur is called it will move the browser to the background.

We need to ensure the body is not the target before calling blur

@arschmitz arschmitz added this to the 1.4.4 milestone Aug 22, 2014

@arschmitz arschmitz self-assigned this Aug 22, 2014

@arschmitz arschmitz closed this in b14dd31 Aug 26, 2014

arschmitz added a commit that referenced this issue Aug 26, 2014

Popup: do not call blur if the target is the body
In IE 10 (and possibly older versions of IE) when there is a single tab open
and a popup is displayed and there is another window on the same monitor,
calling target.blur() can cause the browser to go to the background because the
body element is the targetElement.  Ensuring the element is not the body element
before calling blur() fixes this issue.

Fixes gh-7639
Closes gh-7298

(cherry picked from commit b14dd31)

agcolom added a commit to agcolom/jquery-mobile that referenced this issue Nov 26, 2014

Popup: do not call blur if the target is the body
In IE 10 (and possibly older versions of IE) when there is a single tab open
and a popup is displayed and there is another window on the same monitor,
calling target.blur() can cause the browser to go to the background because the
body element is the targetElement.  Ensuring the element is not the body element
before calling blur() fixes this issue.

Fixes jquerygh-7639
Closes jquerygh-7298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment