We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5413a1d commit b101b2fCopy full SHA for b101b2f
projects/igniteui-angular/src/lib/grids/grid-base.directive.ts
@@ -5544,13 +5544,11 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
5544
5545
if (!this.clipboardOptions.copyHeaders) {
5546
result = result.substring(result.indexOf('\n') + 1);
5547
- }
5548
-
5549
- if (Object.values(data[0]).length === 1) {
5550
- result = result.slice(0, -2);
5551
- if (!this.clipboardOptions.copyHeaders) {
+ if (Object.values(data[0]).length === 1) {
5552
result = result.substring(data[0], result.indexOf('\n'));
5553
}
+ } else if (Object.values(data[0]).length === 1 && this.clipboardOptions.copyHeaders) {
+ result = result.slice(0, -2);
5554
5555
5556
event.preventDefault();
0 commit comments