Skip to content

Commit

Permalink
Apply same workaround for phetsims/phet-io#1143 until #424 is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Jun 20, 2017
1 parent 688fb03 commit 93b7d16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ define( function( require ) {
setTimeout( function() { self.hide(); }, 0 );
},
accessibleFire: function() {
self.focusActiveElement();

// the active element must be focused after the Dialog is hidden, so this must also be wrapped in a
// timeout. This should also be removed once https://github.com/phetsims/joist/issues/424 is complete.
setTimeout( function() { self.focusActiveElement(); }, 0 );
},
tandem: options.tandem.createTandem( 'closeButton' ),

Expand Down

0 comments on commit 93b7d16

Please sign in to comment.