Merge "Add safe-guard for early template dialog resize events"

This commit is contained in:
jenkins-bot 2021-12-07 13:08:42 +00:00 committed by Gerrit Code Review
commit 131f7e940d

View file

@ -647,7 +647,7 @@ ve.ui.MWTransclusionDialog.prototype.getSetupProcess = function ( data ) {
* @private
*/
ve.ui.MWTransclusionDialog.prototype.onWindowResize = function () {
if ( !this.ignoreNextWindowResizeEvent ) {
if ( this.transclusionModel && !this.ignoreNextWindowResizeEvent ) {
this.autoExpandSidebar();
}
this.ignoreNextWindowResizeEvent = false;