Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[popup] Do not fiddle with the focus when rapid-opening/closing durin…

…g reposition - Fixes: #4797 (hopefully)
  • Loading branch information...
commit 5680ba620c719de7ea4c2c1ec97928f58442e8a9 1 parent b2c66d6
Gabriel "_|Nix|_" Schulhof gabrielschulhof authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 js/widgets/popup.js
7 js/widgets/popup.js
View
@@ -91,9 +91,7 @@ define( [ "jquery",
this._trigger( "beforeposition" );
this._ui.container
.removeClass( "ui-selectmenu-hidden" )
- .offset( this._placementCoords( this._desiredCoords( undefined, undefined, "window" ) ) )
- .attr( "tabindex", "0" )
- .focus();
+ .offset( this._placementCoords( this._desiredCoords( undefined, undefined, "window" ) ) );
this._resizeData = null;
this._orientationchangeInProgress = false;
@@ -112,8 +110,7 @@ define( [ "jquery",
// effectively rapid-close the popup while leaving the screen intact
this._ui.container
.addClass( "ui-selectmenu-hidden" )
- .removeAttr( "style" )
- .removeAttr( "tabindex" );
+ .removeAttr( "style" );
this._orientationchangeInProgress = true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.