Skip to content

Commit 7e9dcd2

Browse files
committed
Dialog: Partial fix for #3327: When opening a dialog, give focus to the first tabbable element inside the dialog.
1 parent bb84cbf commit 7e9dcd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/ui.dialog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ $.widget("ui.dialog", {
290290
}
291291
}));
292292

293+
this.uiDialog.find(':tabbable:first').focus();
293294
this._trigger('open', null, { options: this.options });
294295
this._isOpen = true;
295296
},

0 commit comments

Comments
 (0)