Skip to content

Commit

Permalink
fix: paste updatation of the highlighted cell
Browse files Browse the repository at this point in the history
  • Loading branch information
janvi01 committed Nov 6, 2023
1 parent ab6c2d5 commit 1d21a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Table/useMenuAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export function useMenuAction(
async (e?: ClipboardEvent) => {
try {
if (!selectedCell || !selectedCol) return;
if (document.activeElement?.role !== "gridcell") return;
let text: string;
// Firefox doesn't allow for reading clipboard data, hence the workaround
if (navigator.userAgent.includes("Firefox")) {
Expand Down

0 comments on commit 1d21a4b

Please sign in to comment.