Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

IE 10 moving to background. #7298

Closed
wants to merge 3 commits into from
Closed

Conversation

TrueEddie
Copy link
Contributor

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.

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.
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.
@arschmitz
Copy link
Contributor

@TrueEddie thank you for submitting this PR can you please take a moment and sign our CLA http://contribute.jquery.org/CLA/ then we will be happy to take a look at this.

@TrueEddie
Copy link
Contributor Author

Done ;)

@@ -288,7 +288,10 @@ $.widget( "mobile.popup", {
target = $( targetElement );
if ( 0 === target.parents().filter( ui.container[ 0 ] ).length ) {
$( this.document[ 0 ].activeElement ).one( "focus", function(/* theEvent */) {
target.blur();
if (targetElement.nodeName.toLowerCase() !== "body")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need spaces after the opening and before the closing parens .

@arschmitz
Copy link
Contributor

@thanks for taking the time to contribute to jQuery Mobile. We have the following requirements of pull requests before we can review them.

  • Sign our CLA. ( however you need to fix your name in your git config to match )
  • A ticket with a reduced test case must be created and verified by the team.
  • Include a unit test to ensure the fix works and prevent against regressions.
  • Ensure code adheres to our style guide. ( see other comment )
  • Ensure commit messages adhere to our commit message style guide.

If you are interested in continuing with this change, please update this pull request accordingly

Fixed spacing to fit with guidelines.
@TrueEddie
Copy link
Contributor Author

@arschmitz, thanks for helping me with this pull request. I must admit I'm new to GitHub and open source contribution. I added my name to my profile which hopefully is what you meant by step 1.

Step 2: Where do I go to make a ticket? Is that different then an issue?
Step 3: What framework do you use for unit tests, and where do I submit it?
Step 4: I believe I made the appropriate changes with my last commit.
Step 5: Not sure what I'm missing here.

Again, thanks for your help.

@arschmitz
Copy link
Contributor

@TrueEddie no a ticket is an issue they are the same thing just open one explain the issue and include a reduced test case. and then reference this issue in it.
For your name i mean in the actual config of git on your computer right now you are using TrueEddie instead of Eddie Cosme Jr.
All jQuery projects use qUnit for testing ( which is also a jQuery project and actually uses it self to test itself :) these tests are in the tests directory )
yes your style is fine for the commit message please see the style guide i linked to it explains the exact format we are looking for.

If you have any other questions just let me know

@arschmitz
Copy link
Contributor

@TrueEddie just checking if you still plan on pursuing this PR?

@jaspermdegroot jaspermdegroot modified the milestones: 1.4.4, 1.4.3 Jun 12, 2014
@arschmitz arschmitz closed this in b14dd31 Aug 26, 2014
arschmitz pushed a commit that referenced this pull request Aug 26, 2014
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 pushed a commit to agcolom/jquery-mobile that referenced this pull request Nov 26, 2014
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 jquery-archivegh-7639
Closes jquery-archivegh-7298
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants