From c7c0785b8c4c6e1dc694411d13f614b23dcd8f4a Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Tue, 14 Jan 2025 14:52:32 -0300 Subject: [PATCH] allow cmd+click links on unsaved model pages --- apps/hub/src/components/ui/Link.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hub/src/components/ui/Link.tsx b/apps/hub/src/components/ui/Link.tsx index 81056e575e..a994959266 100644 --- a/apps/hub/src/components/ui/Link.tsx +++ b/apps/hub/src/components/ui/Link.tsx @@ -23,7 +23,7 @@ export const Link = forwardRef< const patchedOnClick = useMemo(() => { return (e: React.MouseEvent) => { - if (!isConfirmationActive()) { + if (!isConfirmationActive() || e.metaKey || e.ctrlKey) { return onClick?.(e); } confirmNavigation(e.currentTarget.href);