Skip to content

Commit

Permalink
#7237 fix copy to clipboard (#7246)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz Jurowicz authored and scottdraves committed Apr 26, 2018
1 parent eaccfc2 commit 3bfa980
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/notebook/src/tableDisplay/dataGrid/cell/CellManager.ts
Expand Up @@ -159,10 +159,12 @@ export default class CellManager {
return;
}

const cells = this.getSelectedCells();
const cellsData = this.exportCellsTo(cells, 'tabs');
let cells = this.getSelectedCells();
if (cells.length === 0) {
cells = this.getAllCells();
}

this.executeCopy(cellsData);
this.executeCopy(this.exportCellsTo(cells, 'tabs'));
}

CSVDownload(selectedOnly) {
Expand Down

0 comments on commit 3bfa980

Please sign in to comment.