Skip to content
Browse files

Merge branch 'pbosakov-issue_2821'

  • Loading branch information...
2 parents de75527 + 46f6c67 commit 73508f1dbfae0e1a9b808e1e423a1a60c48c8dce @johnbender johnbender committed Nov 11, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/jquery.mobile.navigation.js
View
6 js/jquery.mobile.navigation.js
@@ -1099,7 +1099,11 @@
// Wrap this in a try/catch block since IE9 throw "Unspecified error" if document.activeElement
// is undefined when we are in an IFrame.
try {
- $( document.activeElement || "" ).add( "input:focus, textarea:focus, select:focus" ).blur();
+ if(document.activeElement && document.activeElement.nodeName.toLowerCase() != 'body') {
+ $(document.activeElement).blur();
+ } else {
+ $( "input:focus, textarea:focus, select:focus" ).blur();
+ }
} catch(e) {}
// If we're displaying the page as a dialog, we don't want the url

0 comments on commit 73508f1

Please sign in to comment.
Something went wrong with that request. Please try again.