Skip to content

Commit 1e9d31d

Browse files
fix(IgxGridBaseDirective): change strategy of removing \n
1 parent b101b2f commit 1e9d31d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5544,10 +5544,9 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
55445544

55455545
if (!this.clipboardOptions.copyHeaders) {
55465546
result = result.substring(result.indexOf('\n') + 1);
5547-
if (Object.values(data[0]).length === 1) {
5548-
result = result.substring(data[0], result.indexOf('\n'));
5549-
}
5550-
} else if (Object.values(data[0]).length === 1 && this.clipboardOptions.copyHeaders) {
5547+
}
5548+
5549+
if (Object.values(data[0]).length) {
55515550
result = result.slice(0, -2);
55525551
}
55535552

0 commit comments

Comments
 (0)