Skip to content

Commit

Permalink
Popup: updated openPrerequisitesComplete method. TESTS PASS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluca committed Oct 16, 2014
1 parent 66e5702 commit 4fe66a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/widgets/popup.js
Expand Up @@ -648,6 +648,9 @@ $.widget( "mobile.popup", {
if ( !$.contains( this._ui.container[ 0 ], this.document[ 0 ].activeElement ) ) {
this._safelyBlur( this.document[ 0 ].activeElement );
}
if ( this._ui.container.find( ":focusable" ).first().length > 0 ) {
this._ui.focusElement = this.document[ 0 ].activeElement;
}
this._ignoreResizeEvents();
if ( id ) {
this.document.find( "[aria-haspopup='true'][aria-owns='" + id + "']" ).attr( "aria-expanded", true );
Expand Down

0 comments on commit 4fe66a0

Please sign in to comment.