From bca5055ca9525db247a0b7f4e637021cc473bc57 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Mon, 20 Jan 2025 14:28:44 -0700 Subject: [PATCH] PRevent clicking passthrough on users click --- .../PermissionLineageBreadcrumb.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/web/src/app/app/_components/PermissionComponents/PermissionLineageBreadcrumb.tsx b/web/src/app/app/_components/PermissionComponents/PermissionLineageBreadcrumb.tsx index 3c836fb47..0f645a12e 100644 --- a/web/src/app/app/_components/PermissionComponents/PermissionLineageBreadcrumb.tsx +++ b/web/src/app/app/_components/PermissionComponents/PermissionLineageBreadcrumb.tsx @@ -1,6 +1,7 @@ import { DatasetPermissionOverviewUser } from '@/api/buster-rest/datasets'; import { AppMaterialIcons, AppPopover } from '@/components'; import { BusterRoutes, createBusterRoute } from '@/routes'; +import { useMemoizedFn } from 'ahooks'; import { createStyles } from 'antd-style'; import Link from 'next/link'; import { useRouter } from 'next/navigation'; @@ -64,9 +65,16 @@ const MultipleLineage: React.FC<{ ); }, [lineage]); + const onClickPreflight = useMemoizedFn((e: React.MouseEvent) => { + e.stopPropagation(); + e.preventDefault(); + }); + return ( -
Multiple access sources
+
+ Multiple access sources +
); };