Browse files

Add afteropen trigger to setTimeout with android fix

The select menu's (now that they depend on popup) require that the first item
is focused after they are open. The focus of the popup itself was deferred
until after the trigger of afteropen which the select menu uses to focus its
first item. As a result the focus was stolen from the select menu by the popup
to the popup container.
  • Loading branch information...
johnbender committed Aug 31, 2012
1 parent fc9c962 commit 0b87a42671110e711725553ef0ad0fce972c3223
Showing with 1 addition and 2 deletions.
  1. +1 −2 js/widgets/popup.js
@@ -488,9 +488,8 @@ define( [ "jquery",
// the "blue flash" of element focus in android 4.0
self._ui.container.attr( "tabindex", "0" ).focus();
self._trigger( "afteropen" );
self._trigger( "afteropen" );
_open: function( options ) {

0 comments on commit 0b87a42

Please sign in to comment.