ve.ui.MWTemplateDialog: Fix dialog becoming inert

OOUI support for multiple modal window managers is hacky, and only
works correctly when the managers are attached directly to <body>.
Remove the wrapper that doesn't seem to be necessary.

Bug: T313690
Change-Id: I4134c0f50d28a364dcf15b426bd9b59a4f7a985d
This commit is contained in:
Bartosz Dziewoński 2022-07-25 16:54:49 +02:00
parent 59c2ee6242
commit 9e954b7c20

View file

@ -36,10 +36,8 @@ ve.ui.MWTemplateDialog = function VeUiMWTemplateDialog( config ) {
this.canGoBack = false;
this.preventReselection = false;
this.confirmOverlay = new ve.ui.Overlay( { classes: [ 've-ui-overlay-global' ] } );
this.confirmDialogs = new ve.ui.WindowManager( { factory: ve.ui.windowFactory, isolate: true } );
this.confirmOverlay.$element.append( this.confirmDialogs.$element );
$( document.body ).append( this.confirmOverlay.$element );
$( document.body ).append( this.confirmDialogs.$element );
};
/* Inheritance */