EditCheckDialog: Reset currentChecks on setup

Change-Id: Iaf0fb4122f5c7168f55e73beaf9c69add1912ae3
This commit is contained in:
Ed Sanders 2024-12-12 14:11:38 +00:00
parent 79adf3f934
commit e9c7503c72

View file

@ -66,6 +66,7 @@ ve.ui.EditCheckDialog.prototype.initialize = function () {
} );
this.currentOffset = 0;
this.currentChecks = null;
this.footerLabel = new OO.ui.LabelWidget();
this.previousButton = new OO.ui.ButtonWidget( {
@ -245,6 +246,7 @@ ve.ui.EditCheckDialog.prototype.getSetupProcess = function ( data ) {
return ve.ui.EditCheckDialog.super.prototype.getSetupProcess.call( this, data )
.first( () => {
this.currentOffset = 0;
this.currentChecks = null;
this.listener = data.listener || 'onDocumentChange';
this.reviewMode = data.reviewMode;
this.surface = data.surface;