Skip to content

Commit

Permalink
Close export dropdown when printing. Fixes #2909
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Aug 9, 2017
1 parent e1a04dd commit 4b16f2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lighthouse-core/report/v2/renderer/report-ui-features.js
Expand Up @@ -180,6 +180,7 @@ class ReportUIFeatures {
break;
case 'print':
this.expandAllDetails();
this.closeExportDropdown();
self.print();
break;
case 'save-json': {
Expand Down Expand Up @@ -258,6 +259,7 @@ class ReportUIFeatures {
printShortCutDetect(e) {
if ((e.ctrlKey || e.metaKey) && e.keyCode === 80) { // Ctrl+P
this.expandAllDetails();
this.closeExportDropdown();
}
}

Expand Down

0 comments on commit 4b16f2e

Please sign in to comment.