Skip to content

Commit

Permalink
Dialog: Don't hard-code widget data key. Fixes #9097 - UI dialog inhe…
Browse files Browse the repository at this point in the history
…ritance.
  • Loading branch information
scottgonzalez committed Feb 18, 2013
1 parent a692bf9 commit 5e1b8dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/jquery.ui.dialog.js
Expand Up @@ -697,6 +697,7 @@ $.widget( "ui.dialog", {
return;
}

var widgetFullName = this.widgetFullName;
if ( !$.ui.dialog.overlayInstances ) {
// Prevent use of anchors and inputs.
// We use a delay in case the overlay is created from an
Expand All @@ -711,7 +712,7 @@ $.widget( "ui.dialog", {
!$( event.target ).closest(".ui-datepicker").length ) {
event.preventDefault();
$(".ui-dialog:visible:last .ui-dialog-content")
.data("ui-dialog")._focusTabbable();
.data( widgetFullName )._focusTabbable();
}
});
}
Expand Down

0 comments on commit 5e1b8dc

Please sign in to comment.