From 548d543efe81ecd6f0a6657550230b765ab4d955 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:27:43 -0300 Subject: [PATCH] fix: When hovering Drill By the dashboard is scrolled to the top (#30073) --- .../src/components/Chart/DrillBy/DrillByMenuItems.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.tsx b/superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.tsx index f694db3d2..b80417a13 100644 --- a/superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.tsx +++ b/superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.tsx @@ -138,7 +138,7 @@ export const DrillByMenuItems = ({ useEffect(() => { if (open) { - ref.current?.input.focus(); + ref.current?.input.focus({ preventScroll: true }); } else { // Reset search input when menu is closed ref.current?.setValue('');