mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Dialog: Don't hard-code widget data key. Fixes #9097 - UI dialog inheritance.
This commit is contained in:
3
ui/jquery.ui.dialog.js
vendored
3
ui/jquery.ui.dialog.js
vendored
@@ -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
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user