Skip to content

Commit 5a209a4

Browse files
committed
fix(Toolbar): Move the cancelation before changing isExporting & showProgress.
1 parent e20a4e0 commit 5a209a4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

projects/igniteui-angular/src/lib/grids/toolbar/grid-toolbar-exporter.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,14 @@ export class IgxGridToolbarExporterComponent extends BaseToolbarDirective {
126126

127127
this.exportStarted.emit(args);
128128
this.grid.toolbarExporting.emit(args);
129-
this.isExporting = true;
130-
this.toolbar.showProgress = true;
131129

132130
if (args.cancel) {
133-
this.isExporting = false;
134-
this.toolbar.showProgress = false;
135131
return;
136132
}
137133

134+
this.isExporting = true;
135+
this.toolbar.showProgress = true;
136+
138137
exporter.exportEnded.pipe(first()).subscribe(() => {
139138
this.exportEnded.emit();
140139
this.isExporting = false;

0 commit comments

Comments
 (0)