fix: paste updatation of the highlighted cell

This commit is contained in:
janvi01
2023-11-06 16:42:31 +05:30
parent ab6c2d57e6
commit 1d21a4b073

View File

@@ -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")) {