Skip to content

Dialog: Prevent tabbing off any dialog. Fixes #3768 - Dialog: contain fo... #749

Closed
wants to merge 1 commit into from
View
4 ui/jquery.ui.dialog.js
@@ -171,9 +171,9 @@ $.widget("ui.dialog", {
uiDialog.bgiframe();
}
- // prevent tabbing out of modal dialogs
+ // prevent tabbing out of dialogs
this._on( uiDialog, { keydown: function( event ) {
- if ( !options.modal || event.keyCode !== $.ui.keyCode.TAB ) {
+ if ( event.keyCode !== $.ui.keyCode.TAB ) {
return;
}
Something went wrong with that request. Please try again.