Skip to content

Commit 329507f

Browse files
committed
Dialog: Trigger focus event when dialog is moved to top.
1 parent 739326e commit 329507f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/jquery.ui.dialog.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,7 @@ $.widget("ui.dialog", {
306306

307307
open: function() {
308308
if ( this._isOpen ) {
309-
// TODO don't pass silent flag? should probably trigger focus when moving to top again
310-
this.moveToTop( null, true );
309+
this.moveToTop( null );
311310
// TODO run this only when dialog wasn't focused?
312311
this._focusTabbable();
313312
return;

0 commit comments

Comments
 (0)