Skip to content

Commit 3a09a4a

Browse files
DavidSoutherjzaefferer
authored andcommitted
Dialog: Prevent tabbing off any dialog. Fixes #3768 - Dialog: contain focus within dialog.
1 parent 14691ae commit 3a09a4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.dialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ $.widget("ui.dialog", {
174174
uiDialog.bgiframe();
175175
}
176176

177-
// prevent tabbing out of modal dialogs
177+
// prevent tabbing out of dialogs
178178
this._on( uiDialog, { keydown: function( event ) {
179-
if ( !options.modal || event.keyCode !== $.ui.keyCode.TAB ) {
179+
if ( event.keyCode !== $.ui.keyCode.TAB ) {
180180
return;
181181
}
182182

0 commit comments

Comments
 (0)