Skip to content

Commit

Permalink
Popup: blue focus flash on android 4.2
Browse files Browse the repository at this point in the history
replaced the contains check with a jquery friendly version

Ref jquery-archive#7533
  • Loading branch information
ldeluca committed Oct 9, 2014
1 parent e44ba48 commit 12e3db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/popup.js
Expand Up @@ -644,7 +644,7 @@ $.widget( "mobile.popup", {
this._isOpen = true;
this._resizeScreen();
//check to see if currElement is not a child of the container. If it's not, blur
if (this._ui.container.has($( this.document[ 0 ].activeElement ) ).length <= 0 ) {
if ( !$.contains( this._ui.container[ 0 ], this.document[ 0 ].activeElement ) ) {
this._safelyBlur( this.document[ 0 ].activeElement );
}
this._ignoreResizeEvents();
Expand Down

0 comments on commit 12e3db8

Please sign in to comment.