Skip to content

Commit

Permalink
fix #463 Focus on element inside Dialog widget not working on IE7
Browse files Browse the repository at this point in the history
After dialog popup open, the $focus called from the callback it's not applied to the element.
(cherry picked from commit 3f164e5)
  • Loading branch information
fab-b authored and Fabio Crisci committed Apr 17, 2013
1 parent 50b0b5a commit d053642
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/aria/widgets/container/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,13 @@ Aria.classDefinition({
aria.templates.NavigationManager.focusFirst(this._domElt);
}

this.evalCallback(cfg.onOpen);
aria.core.Timer.addCallback({
fn : function () {
this.evalCallback(cfg.onOpen);
},
scope : this,
delay : 4
});

if (cfg.movable) {
Aria.load({
Expand Down Expand Up @@ -735,4 +741,4 @@ Aria.classDefinition({
}

}
});
});

0 comments on commit d053642

Please sign in to comment.