We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdc8102 commit a9d2e3fCopy full SHA for a9d2e3f
ui/jquery.ui.dialog.js
@@ -209,7 +209,9 @@ $.widget("ui.dialog", {
209
210
this._size();
211
this._position( this.options.position );
212
- this.overlay = this.options.modal ? new $.ui.dialog.overlay( this ) : null;
+ if ( this.options.modal ) {
213
+ this.overlay = new $.ui.dialog.overlay( this );
214
+ }
215
this._moveToTop( null, true );
216
this._show( this.uiDialog, this.options.show );
217
@@ -277,7 +279,7 @@ $.widget("ui.dialog", {
277
279
if ( event.keyCode !== $.ui.keyCode.TAB ) {
278
280
return;
281
}
- var tabbables = $( ":tabbable", this.uiDialog ),
282
+ var tabbables = this.uiDialog.find( ":tabbable" ),
283
first = tabbables.filter( ":first" ),
284
last = tabbables.filter( ":last" );
285
0 commit comments