From 95a1960931fbfc4b2fca92d6517fc5b56cb56203 Mon Sep 17 00:00:00 2001
From: Thisari Muthuwahandi <thisari.muthuwahandi@mni.thm.de>
Date: Sat, 13 Apr 2019 12:41:21 +0200
Subject: [PATCH] Remove focus from the export-button after closing the dialog
 box

---
 .../_dialogs/comment-export/comment-export.component.ts        | 3 +--
 .../comment-creator-page/comment-creator-page.component.ts     | 2 +-
 .../components/shared/comment-list/comment-list.component.scss | 1 -
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts b/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts
index 86497298d..f94718452 100644
--- a/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts
+++ b/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts
@@ -17,8 +17,7 @@ export class CommentExportComponent implements OnInit {
   roomId: string;
 
   constructor(public dialogRef: MatDialogRef<CommentCreatorPageComponent>,
-    private commentService: CommentService,
-  ) { }
+    private commentService: CommentService) { }
 
   ngOnInit() {
     this.currentButton = 'json';
diff --git a/src/app/components/creator/comment-creator-page/comment-creator-page.component.ts b/src/app/components/creator/comment-creator-page/comment-creator-page.component.ts
index b3906468f..cdd887fc0 100644
--- a/src/app/components/creator/comment-creator-page/comment-creator-page.component.ts
+++ b/src/app/components/creator/comment-creator-page/comment-creator-page.component.ts
@@ -26,7 +26,7 @@ export class CommentCreatorPageComponent implements OnInit {
     this.commentService.exportButtonClicked(false);
     if (this.dialog.openDialogs.length === 0) {
       this.dialog.open(CommentExportComponent, {
-        width: '400px', height: '300px'
+        width: '400px', height: '300px', restoreFocus: false
       });
     }
   }
diff --git a/src/app/components/shared/comment-list/comment-list.component.scss b/src/app/components/shared/comment-list/comment-list.component.scss
index b165e55f2..c1bb2f055 100644
--- a/src/app/components/shared/comment-list/comment-list.component.scss
+++ b/src/app/components/shared/comment-list/comment-list.component.scss
@@ -26,7 +26,6 @@ input {
   margin-bottom: 10px;
 }
 
-
 .add-button {
   width: 44px!important;
   height: 44px!important;
-- 
GitLab