fix(grid): allow native copy for transposed field names
This commit is contained in:
2 files changed
+5
No files matched your search
@@ -8003,6 +8003,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
||||
<template #default="{ item, index }">
|
||||
<div class="data-grid-transpose-row flex border-b border-border/60" :style="{ height: '30px', width: `${transposeTotalWidth}px` }">
|
||||
<div
|
||||
data-native-clipboard
|
||||
class="sticky left-0 z-10 flex shrink-0 items-center border-r border-border bg-background px-3 py-0 font-medium truncate"
|
||||
:class="{
|
||||
'bg-yellow-200/60 dark:bg-yellow-500/20': transposeHeaderIsSearchMatch(visibleColumnIndexes[index]),
|
||||
|
||||
@@ -7,4 +7,8 @@ describe("DataGrid native clipboard regions", () => {
|
||||
it("keeps table info text selection out of grid copy shortcuts", () => {
|
||||
expect(dataGridSource).toMatch(/<div\b(?=[^>]*\bv-if="showTableInfo")(?=[^>]*\bdata-native-clipboard)[^>]*>/);
|
||||
});
|
||||
|
||||
it("keeps transposed field-name text selection out of grid copy shortcuts", () => {
|
||||
expect(dataGridSource).toMatch(/<div\b(?=[^>]*\bdata-native-clipboard)(?=[^>]*:title="item\.column")[^>]*>/);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user