1 | | _createOverlay: function() { |
2 | | if ( !this.options.modal ) { |
3 | | return; |
4 | | } |
5 | | |
6 | | if ( !$.ui.dialog.overlayInstances ) { |
7 | | // Prevent use of anchors and inputs. |
8 | | // We use a delay in case the overlay is created from an |
9 | | // event that we're going to be cancelling. (#2804) |
10 | | this._delay(function() { |
11 | | // Handle .dialog().dialog("close") (#4065) |
12 | | ------> if ( $.ui.dialog.overlayInstances ) { |
13 | | this._on( this.document, { |
14 | | focusin: function( event ) { |
15 | | if ( !$( event.target ).closest(".ui-dialog").length ) { |
16 | | event.preventDefault(); |
17 | | /*$(".ui-dialog:visible:last .ui-dialog-content") |
18 | | .data("ui-dialog")._focusTabbable();*/ |
19 | | } |
20 | | } |
21 | | }); |
22 | | } |
23 | | }); |
24 | | } |
25 | | |
26 | | |
27 | | Comenten esta parte del codigo y con esto se soluciona: |
28 | | |
29 | | $(".ui-dialog:visible:last .ui-dialog-content") |
30 | | .data("ui-dialog")._focusTabbable(); |
31 | | |
32 | | |
33 | | Saludos desde Merida, Yucatan. |