Skip to content

Commit

Permalink
Fox copy cell to clipboard
Browse files Browse the repository at this point in the history
When refactoring the context menu, the column was not set correctly causing the incorrect cell value to be copied
  • Loading branch information
paustint committed Dec 8, 2024
1 parent fc030fa commit d416573
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/ui/src/lib/data-table/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const DataTable = forwardRef<any, DataTableProps<any>>(
row: filteredRows[contextMenuProps.rowIdx] as T,
rowIdx: contextMenuProps.rowIdx,
rows: filteredRows as T[],
column: columns[contextMenuProps.rowIdx],
column: contextMenuProps.column,
columns,
});
handleCloseContextMenu();
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/lib/data-table/DataTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const DataTree = forwardRef<any, DataTreeProps<any>>(
row: filteredRows[contextMenuProps.rowIdx] as T,
rowIdx: contextMenuProps.rowIdx,
rows: filteredRows as T[],
column: columns[contextMenuProps.rowIdx],
column: contextMenuProps.column,
columns,
});
handleCloseContextMenu();
Expand Down

0 comments on commit d416573

Please sign in to comment.