Copy only focusedCell
This commit is contained in:
parent
6751dbc070
commit
f8174da9c5
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -434,6 +434,13 @@ export default class CellManager {
|
||||
}
|
||||
|
||||
copyCellContents($cell1, $cell2) {
|
||||
if (!$cell2 && $cell1) {
|
||||
// copy only focusedCell
|
||||
const { colIndex, rowIndex } = $.data($cell1);
|
||||
const cell = this.getCell(colIndex, rowIndex);
|
||||
copyTextToClipboard(cell.content);
|
||||
return;
|
||||
}
|
||||
const cells = this.getCellsInRange($cell1, $cell2);
|
||||
|
||||
if (!cells) return;
|
||||
|
||||
@ -14,7 +14,7 @@ export default class Style {
|
||||
}
|
||||
|
||||
destroy() {
|
||||
this.datatable.wrapper.removeChild(this.styleEl);
|
||||
this.styleEl.remove();
|
||||
}
|
||||
|
||||
setStyle(rule, styleMap, index = -1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user